diff options
Diffstat (limited to 'drivers/clocksource/acpi_pm.c')
-rw-r--r-- | drivers/clocksource/acpi_pm.c | 27 |
1 files changed, 10 insertions, 17 deletions
diff --git a/drivers/clocksource/acpi_pm.c b/drivers/clocksource/acpi_pm.c index 6eab88985670..28037d0b8dcd 100644 --- a/drivers/clocksource/acpi_pm.c +++ b/drivers/clocksource/acpi_pm.c | |||
@@ -109,10 +109,8 @@ static void acpi_pm_check_blacklist(struct pci_dev *dev) | |||
109 | 109 | ||
110 | /* the bug has been fixed in PIIX4M */ | 110 | /* the bug has been fixed in PIIX4M */ |
111 | if (dev->revision < 3) { | 111 | if (dev->revision < 3) { |
112 | printk(KERN_WARNING "* Found PM-Timer Bug on the chipset." | 112 | pr_warn("* Found PM-Timer Bug on the chipset. Due to workarounds for a bug,\n" |
113 | " Due to workarounds for a bug,\n" | 113 | "* this clock source is slow. Consider trying other clock sources\n"); |
114 | "* this clock source is slow. Consider trying" | ||
115 | " other clock sources\n"); | ||
116 | 114 | ||
117 | acpi_pm_need_workaround(); | 115 | acpi_pm_need_workaround(); |
118 | } | 116 | } |
@@ -125,12 +123,9 @@ static void acpi_pm_check_graylist(struct pci_dev *dev) | |||
125 | if (acpi_pm_good) | 123 | if (acpi_pm_good) |
126 | return; | 124 | return; |
127 | 125 | ||
128 | printk(KERN_WARNING "* The chipset may have PM-Timer Bug. Due to" | 126 | pr_warn("* The chipset may have PM-Timer Bug. Due to workarounds for a bug,\n" |
129 | " workarounds for a bug,\n" | 127 | "* this clock source is slow. If you are sure your timer does not have\n" |
130 | "* this clock source is slow. If you are sure your timer" | 128 | "* this bug, please use \"acpi_pm_good\" to disable the workaround\n"); |
131 | " does not have\n" | ||
132 | "* this bug, please use \"acpi_pm_good\" to disable the" | ||
133 | " workaround\n"); | ||
134 | 129 | ||
135 | acpi_pm_need_workaround(); | 130 | acpi_pm_need_workaround(); |
136 | } | 131 | } |
@@ -162,8 +157,7 @@ static int verify_pmtmr_rate(void) | |||
162 | /* Check that the PMTMR delta is within 5% of what we expect */ | 157 | /* Check that the PMTMR delta is within 5% of what we expect */ |
163 | if (delta < (PMTMR_EXPECTED_RATE * 19) / 20 || | 158 | if (delta < (PMTMR_EXPECTED_RATE * 19) / 20 || |
164 | delta > (PMTMR_EXPECTED_RATE * 21) / 20) { | 159 | delta > (PMTMR_EXPECTED_RATE * 21) / 20) { |
165 | printk(KERN_INFO "PM-Timer running at invalid rate: %lu%% " | 160 | pr_info("PM-Timer running at invalid rate: %lu%% of normal - aborting.\n", |
166 | "of normal - aborting.\n", | ||
167 | 100UL * delta / PMTMR_EXPECTED_RATE); | 161 | 100UL * delta / PMTMR_EXPECTED_RATE); |
168 | return -1; | 162 | return -1; |
169 | } | 163 | } |
@@ -199,15 +193,14 @@ static int __init init_acpi_pm_clocksource(void) | |||
199 | break; | 193 | break; |
200 | if ((value2 < value1) && ((value2) < 0xFFF)) | 194 | if ((value2 < value1) && ((value2) < 0xFFF)) |
201 | break; | 195 | break; |
202 | printk(KERN_INFO "PM-Timer had inconsistent results:" | 196 | pr_info("PM-Timer had inconsistent results: %#llx, %#llx - aborting.\n", |
203 | " %#llx, %#llx - aborting.\n", | 197 | value1, value2); |
204 | value1, value2); | ||
205 | pmtmr_ioport = 0; | 198 | pmtmr_ioport = 0; |
206 | return -EINVAL; | 199 | return -EINVAL; |
207 | } | 200 | } |
208 | if (i == ACPI_PM_READ_CHECKS) { | 201 | if (i == ACPI_PM_READ_CHECKS) { |
209 | printk(KERN_INFO "PM-Timer failed consistency check " | 202 | pr_info("PM-Timer failed consistency check (%#llx) - aborting.\n", |
210 | " (%#llx) - aborting.\n", value1); | 203 | value1); |
211 | pmtmr_ioport = 0; | 204 | pmtmr_ioport = 0; |
212 | return -ENODEV; | 205 | return -ENODEV; |
213 | } | 206 | } |