summaryrefslogtreecommitdiffstats
path: root/init/calibrate.c
diff options
context:
space:
mode:
authorPeter De Schrijver <pdeschrijver@nvidia.com>2014-06-12 18:58:27 +0300
committerStephen Warren <swarren@nvidia.com>2014-06-16 12:47:39 -0600
commite6639117d624d5c8f531d22456a69e38dc23c501 (patch)
treee8d6a77c772ae9094cc722bd76345d2903eea7ed /init/calibrate.c
parent7171511eaec5bf23fb06078f59784a3a0626b38f (diff)
downloadlinux-e6639117d624d5c8f531d22456a69e38dc23c501.tar.gz
linux-e6639117d624d5c8f531d22456a69e38dc23c501.tar.bz2
linux-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)
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();
}