diff options
Diffstat (limited to 'init/calibrate.c')
-rw-r--r-- | init/calibrate.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/init/calibrate.c b/init/calibrate.c index cfd7000c9d71..aae2f40fea4c 100644 --- a/init/calibrate.c +++ b/init/calibrate.c | |||
@@ -93,9 +93,6 @@ static unsigned long __cpuinit calibrate_delay_direct(void) | |||
93 | * If the upper limit and lower limit of the timer_rate is | 93 | * If the upper limit and lower limit of the timer_rate is |
94 | * >= 12.5% apart, redo calibration. | 94 | * >= 12.5% apart, redo calibration. |
95 | */ | 95 | */ |
96 | printk(KERN_DEBUG "calibrate_delay_direct() timer_rate_max=%lu " | ||
97 | "timer_rate_min=%lu pre_start=%lu pre_end=%lu\n", | ||
98 | timer_rate_max, timer_rate_min, pre_start, pre_end); | ||
99 | if (start >= post_end) | 96 | if (start >= post_end) |
100 | printk(KERN_NOTICE "calibrate_delay_direct() ignoring " | 97 | printk(KERN_NOTICE "calibrate_delay_direct() ignoring " |
101 | "timer_rate as we had a TSC wrap around" | 98 | "timer_rate as we had a TSC wrap around" |
@@ -248,30 +245,32 @@ recalibrate: | |||
248 | 245 | ||
249 | void __cpuinit calibrate_delay(void) | 246 | void __cpuinit calibrate_delay(void) |
250 | { | 247 | { |
248 | unsigned long lpj; | ||
251 | static bool printed; | 249 | static bool printed; |
252 | 250 | ||
253 | if (preset_lpj) { | 251 | if (preset_lpj) { |
254 | loops_per_jiffy = preset_lpj; | 252 | lpj = preset_lpj; |
255 | if (!printed) | 253 | if (!printed) |
256 | pr_info("Calibrating delay loop (skipped) " | 254 | pr_info("Calibrating delay loop (skipped) " |
257 | "preset value.. "); | 255 | "preset value.. "); |
258 | } else if ((!printed) && lpj_fine) { | 256 | } else if ((!printed) && lpj_fine) { |
259 | loops_per_jiffy = lpj_fine; | 257 | lpj = lpj_fine; |
260 | pr_info("Calibrating delay loop (skipped), " | 258 | pr_info("Calibrating delay loop (skipped), " |
261 | "value calculated using timer frequency.. "); | 259 | "value calculated using timer frequency.. "); |
262 | } else if ((loops_per_jiffy = calibrate_delay_direct()) != 0) { | 260 | } else if ((lpj = calibrate_delay_direct()) != 0) { |
263 | if (!printed) | 261 | if (!printed) |
264 | pr_info("Calibrating delay using timer " | 262 | pr_info("Calibrating delay using timer " |
265 | "specific routine.. "); | 263 | "specific routine.. "); |
266 | } else { | 264 | } else { |
267 | if (!printed) | 265 | if (!printed) |
268 | pr_info("Calibrating delay loop... "); | 266 | pr_info("Calibrating delay loop... "); |
269 | loops_per_jiffy = calibrate_delay_converge(); | 267 | lpj = calibrate_delay_converge(); |
270 | } | 268 | } |
271 | if (!printed) | 269 | if (!printed) |
272 | pr_cont("%lu.%02lu BogoMIPS (lpj=%lu)\n", | 270 | pr_cont("%lu.%02lu BogoMIPS (lpj=%lu)\n", |
273 | loops_per_jiffy/(500000/HZ), | 271 | lpj/(500000/HZ), |
274 | (loops_per_jiffy/(5000/HZ)) % 100, loops_per_jiffy); | 272 | (lpj/(5000/HZ)) % 100, lpj); |
275 | 273 | ||
274 | loops_per_jiffy = lpj; | ||
276 | printed = true; | 275 | printed = true; |
277 | } | 276 | } |