kernel: add calibration_delay_done()
authorPeter De Schrijver <pdeschrijver@nvidia.com>
Thu, 12 Jun 2014 15:58:27 +0000 (18:58 +0300)
committerStephen Warren <swarren@nvidia.com>
Mon, 16 Jun 2014 18:47:39 +0000 (12:47 -0600)
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>
init/calibrate.c

index 520702db9accd25ff2e66579bfee4d231d5fa0e4..ce635dccf3d96921249a2e20084d9f67b5361b33 100644 (file)
@@ -262,6 +262,15 @@ unsigned long __attribute__((weak)) calibrate_delay_is_known(void)
        return 0;
 }
 
+/*
+ * Indicate the cpu delay calibration is done. This can be used by
+ * architectures to stop accepting delay timer registrations after this point.
+ */
+
+void __attribute__((weak)) calibration_delay_done(void)
+{
+}
+
 void calibrate_delay(void)
 {
        unsigned long lpj;
@@ -301,4 +310,6 @@ void calibrate_delay(void)
 
        loops_per_jiffy = lpj;
        printed = true;
+
+       calibration_delay_done();
 }
This page took 0.024368 seconds and 5 git commands to generate.