aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter De Schrijver <pdeschrijver@nvidia.com>2014-06-12 11:58:27 -0400
committerStephen Warren <swarren@nvidia.com>2014-06-16 14:47:39 -0400
commite6639117d624d5c8f531d22456a69e38dc23c501 (patch)
treee8d6a77c772ae9094cc722bd76345d2903eea7ed
parent7171511eaec5bf23fb06078f59784a3a0626b38f (diff)
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>
-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}