aboutsummaryrefslogtreecommitdiffstats
path: root/init/calibrate.c
diff options
context:
space:
mode:
Diffstat (limited to 'init/calibrate.c')
-rw-r--r--init/calibrate.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/init/calibrate.c b/init/calibrate.c
index 520702db9acc..ce635dccf3d9 100644
--- a/init/calibrate.c
+++ b/init/calibrate.c
@@ -262,6 +262,15 @@ unsigned long __attribute__((weak)) calibrate_delay_is_known(void)
262 return 0; 262 return 0;
263} 263}
264 264
265/*
266 * Indicate the cpu delay calibration is done. This can be used by
267 * architectures to stop accepting delay timer registrations after this point.
268 */
269
270void __attribute__((weak)) calibration_delay_done(void)
271{
272}
273
265void calibrate_delay(void) 274void calibrate_delay(void)
266{ 275{
267 unsigned long lpj; 276 unsigned long lpj;
@@ -301,4 +310,6 @@ void calibrate_delay(void)
301 310
302 loops_per_jiffy = lpj; 311 loops_per_jiffy = lpj;
303 printed = true; 312 printed = true;
313
314 calibration_delay_done();
304} 315}