aboutsummaryrefslogtreecommitdiff
path: root/src/cpu/x86/tsc
diff options
context:
space:
mode:
Diffstat (limited to 'src/cpu/x86/tsc')
-rw-r--r--src/cpu/x86/tsc/delay_tsc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cpu/x86/tsc/delay_tsc.c b/src/cpu/x86/tsc/delay_tsc.c
index 04f709fde8..a589cdb8dd 100644
--- a/src/cpu/x86/tsc/delay_tsc.c
+++ b/src/cpu/x86/tsc/delay_tsc.c
@@ -83,7 +83,7 @@ static unsigned long calibrate_tsc_with_pit(void)
if (end.lo <= CALIBRATE_DIVISOR)
goto bad_ctc;
- return CEIL_DIV(end.lo, CALIBRATE_DIVISOR);
+ return DIV_ROUND_UP(end.lo, CALIBRATE_DIVISOR);
}
/*