aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter De Schrijver2014-06-12 10:58:27 -0500
committerStephen Warren2014-06-16 13:47:39 -0500
commite6639117d624d5c8f531d22456a69e38dc23c501 (patch)
treee8d6a77c772ae9094cc722bd76345d2903eea7ed /init/calibrate.c
parent7171511eaec5bf23fb06078f59784a3a0626b38f (diff)
downloadkernel-e6639117d624d5c8f531d22456a69e38dc23c501.tar.gz
kernel-e6639117d624d5c8f531d22456a69e38dc23c501.tar.xz
kernel-e6639117d624d5c8f531d22456a69e38dc23c501.zip
kernel: add calibration_delay_done()
Add calibration_delay_done() call and dummy implementation. This allows architectures to stop accepting registrations for new timer based delay functions. Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com> Acked-by: Russell King <rmk+kernel@arm.linux.org.uk> Signed-off-by: Stephen Warren <swarren@nvidia.com>
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}