From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter De Schrijver Subject: [PATCH 1/3] kernel: add calibration_delay_done() Date: Tue, 20 May 2014 18:36:09 +0300 Message-ID: <1400600176-435-2-git-send-email-pdeschrijver@nvidia.com> References: <1400600176-435-1-git-send-email-pdeschrijver@nvidia.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: In-Reply-To: <1400600176-435-1-git-send-email-pdeschrijver@nvidia.com> Sender: linux-kernel-owner@vger.kernel.org To: Peter De Schrijver Cc: Russell King , Daniel Lezcano , Thomas Gleixner , Stephen Warren , Thierry Reding , Paul Gortmaker , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-tegra@vger.kernel.org List-Id: linux-tegra@vger.kernel.org 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 --- init/calibrate.c | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/init/calibrate.c b/init/calibrate.c index 520702d..31cae76 100644 --- a/init/calibrate.c +++ b/init/calibrate.c @@ -262,6 +262,16 @@ 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) +{ + return; +} + void calibrate_delay(void) { unsigned long lpj; @@ -301,4 +311,6 @@ void calibrate_delay(void) loops_per_jiffy = lpj; printed = true; + + calibration_delay_done(); } -- 1.7.7.rc0.72.g4b5ea.dirty