mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
init: check printed flag to skip printing message
Otherwise the 'Calibration skipped' message gets printed everytime a CPU is hotplugged in, cluttering console for systems that frequently hotplug CPUs. Signed-off-by: Diwakar Tundlam <[email protected]> Cc: Phil Carmody <[email protected]> Cc: Russell King <[email protected]> Cc: Greg KH <[email protected]> Cc: Sameer Nanda <[email protected]> Cc: Peter De Schrijver <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
da0503aae0
commit
8595c539f0
1 changed files with 2 additions and 1 deletions
|
|
@ -267,7 +267,8 @@ void __cpuinit calibrate_delay(void)
|
|||
|
||||
if (per_cpu(cpu_loops_per_jiffy, this_cpu)) {
|
||||
lpj = per_cpu(cpu_loops_per_jiffy, this_cpu);
|
||||
pr_info("Calibrating delay loop (skipped) "
|
||||
if (!printed)
|
||||
pr_info("Calibrating delay loop (skipped) "
|
||||
"already calibrated this CPU");
|
||||
} else if (preset_lpj) {
|
||||
lpj = preset_lpj;
|
||||
|
|
|
|||
Loading…
Reference in a new issue