aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/apic.c
diff options
context:
space:
mode:
authorYasuaki Ishimatsu <isimatu.yasuaki@jp.fujitsu.com>2009-01-27 22:52:24 -0500
committerH. Peter Anvin <hpa@linux.intel.com>2009-01-29 20:07:09 -0500
commit39ba5d43fc9133696240fc8b6b13e7a41fea87cd (patch)
tree7dfa1d98759d415b251c94c9b2d7e56cfb8f3d0f /arch/x86/kernel/apic.c
parent754ef0cd65faac4840ada4362bda322d9a811fbf (diff)
x86: unify PM-Timer messages
Impact: Cleans up printk formatting When LOCAL APIC was calibrated, the debug message is displayed as follows. CPU0: Intel(R) Xeon(R) CPU 5110 @ 1.60GHz stepping 06 Using local APIC timer interrupts. calibrating APIC timer ... ... lapic delta = 3773131 ... PM timer delta = 812434 APIC calibration not consistent with PM Timer: 226ms instead of 100ms APIC delta adjusted to PM-Timer: 1662420 (3773131) TSC delta adjusted to PM-Timer: 159592409 (362220564) ..... delta 1662420 ..... mult: 71411249 ..... calibration result: 265987 ..... CPU clock speed is 1595.0924 MHz. ..... host bus clock speed is 265.0987 MHz. There are three type of PM-Timer (PM-Timer, PM Timer, and PM timer), in this message. This patch unifies those messages to PM-Timer. Signed-off-by: Yasuaki Ishimatsu <isimatu.yasuaki@jp.fujitsu.com> Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'arch/x86/kernel/apic.c')
-rw-r--r--arch/x86/kernel/apic.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/x86/kernel/apic.c b/arch/x86/kernel/apic.c
index 7bcd746d704c..0d935d218d0e 100644
--- a/arch/x86/kernel/apic.c
+++ b/arch/x86/kernel/apic.c
@@ -547,7 +547,7 @@ calibrate_by_pmtimer(long deltapm, long *delta, long *deltatsc)
547 return -1; 547 return -1;
548#endif 548#endif
549 549
550 apic_printk(APIC_VERBOSE, "... PM timer delta = %ld\n", deltapm); 550 apic_printk(APIC_VERBOSE, "... PM-Timer delta = %ld\n", deltapm);
551 551
552 /* Check, if the PM timer is available */ 552 /* Check, if the PM timer is available */
553 if (!deltapm) 553 if (!deltapm)
@@ -557,14 +557,14 @@ calibrate_by_pmtimer(long deltapm, long *delta, long *deltatsc)
557 557
558 if (deltapm > (pm_100ms - pm_thresh) && 558 if (deltapm > (pm_100ms - pm_thresh) &&
559 deltapm < (pm_100ms + pm_thresh)) { 559 deltapm < (pm_100ms + pm_thresh)) {
560 apic_printk(APIC_VERBOSE, "... PM timer result ok\n"); 560 apic_printk(APIC_VERBOSE, "... PM-Timer result ok\n");
561 return 0; 561 return 0;
562 } 562 }
563 563
564 res = (((u64)deltapm) * mult) >> 22; 564 res = (((u64)deltapm) * mult) >> 22;
565 do_div(res, 1000000); 565 do_div(res, 1000000);
566 pr_warning("APIC calibration not consistent " 566 pr_warning("APIC calibration not consistent "
567 "with PM Timer: %ldms instead of 100ms\n",(long)res); 567 "with PM-Timer: %ldms instead of 100ms\n",(long)res);
568 568
569 /* Correct the lapic counter value */ 569 /* Correct the lapic counter value */
570 res = (((u64)(*delta)) * pm_100ms); 570 res = (((u64)(*delta)) * pm_100ms);