Message ID | 500800FC.40002@renesas.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/arch/arm/lib/delay.c b/arch/arm/lib/delay.c index 395d5fb..b9874a3 100644 --- a/arch/arm/lib/delay.c +++ b/arch/arm/lib/delay.c @@ -65,6 +65,13 @@ void __init init_current_timer_delay(unsigned long freq) arm_delay_ops.udelay = __timer_udelay; } +void __init calibrate_delay_early(unsigned long rate) +{ + pr_info("Calibrating delay using CPU frequency.. %lu Hz\n", rate); + lpj_fine = (rate + (HZ/2)) / HZ; + loops_per_jiffy = lpj_fine; +} + unsigned long __cpuinit calibrate_delay_is_known(void) { return lpj_fine;