diff options
author | Peter De Schrijver <pdeschrijver@nvidia.com> | 2014-06-12 11:58:27 -0400 |
---|---|---|
committer | Stephen Warren <swarren@nvidia.com> | 2014-06-16 14:47:39 -0400 |
commit | e6639117d624d5c8f531d22456a69e38dc23c501 (patch) | |
tree | e8d6a77c772ae9094cc722bd76345d2903eea7ed | |
parent | 7171511eaec5bf23fb06078f59784a3a0626b38f (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.c | 11 |
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 | |||
270 | void __attribute__((weak)) calibration_delay_done(void) | ||
271 | { | ||
272 | } | ||
273 | |||
265 | void calibrate_delay(void) | 274 | void 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 | } |