Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 253967
b: refs/heads/master
c: 1b19ca9
h: refs/heads/master
i:
  253965: dacdc13
  253963: a6e89ea
  253959: dbd85d8
  253951: 4e3be88
v: v3
  • Loading branch information
Russell King authored and Linus Torvalds committed Jun 23, 2011
1 parent 8b8e1bd commit 634f52c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 33b1e6939f5c37ab8e64280fd3d54046607b5c80
refs/heads/master: 1b19ca9f0bdab7d5035821e1ec8f39df9a6e3ee0
14 changes: 8 additions & 6 deletions trunk/init/calibrate.c
Original file line number Diff line number Diff line change
Expand Up @@ -245,30 +245,32 @@ static unsigned long __cpuinit calibrate_delay_converge(void)

void __cpuinit calibrate_delay(void)
{
unsigned long lpj;
static bool printed;

if (preset_lpj) {
loops_per_jiffy = preset_lpj;
lpj = preset_lpj;
if (!printed)
pr_info("Calibrating delay loop (skipped) "
"preset value.. ");
} else if ((!printed) && lpj_fine) {
loops_per_jiffy = lpj_fine;
lpj = lpj_fine;
pr_info("Calibrating delay loop (skipped), "
"value calculated using timer frequency.. ");
} else if ((loops_per_jiffy = calibrate_delay_direct()) != 0) {
} else if ((lpj = calibrate_delay_direct()) != 0) {
if (!printed)
pr_info("Calibrating delay using timer "
"specific routine.. ");
} else {
if (!printed)
pr_info("Calibrating delay loop... ");
loops_per_jiffy = calibrate_delay_converge();
lpj = calibrate_delay_converge();
}
if (!printed)
pr_cont("%lu.%02lu BogoMIPS (lpj=%lu)\n",
loops_per_jiffy/(500000/HZ),
(loops_per_jiffy/(5000/HZ)) % 100, loops_per_jiffy);
lpj/(500000/HZ),
(lpj/(5000/HZ)) % 100, lpj);

loops_per_jiffy = lpj;
printed = true;
}

0 comments on commit 634f52c

Please sign in to comment.