2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-11-16 14:44:34 +08:00

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>
This commit is contained in:
Peter De Schrijver 2014-06-12 18:58:27 +03:00 committed by Stephen Warren
parent 7171511eae
commit e6639117d6

View File

@ -262,6 +262,15 @@ unsigned long __attribute__((weak)) calibrate_delay_is_known(void)
return 0; 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) void calibrate_delay(void)
{ {
unsigned long lpj; unsigned long lpj;
@ -301,4 +310,6 @@ void calibrate_delay(void)
loops_per_jiffy = lpj; loops_per_jiffy = lpj;
printed = true; printed = true;
calibration_delay_done();
} }