diff options
Diffstat (limited to 'drivers/acpi/processor_perflib.c')
-rw-r--r-- | drivers/acpi/processor_perflib.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/acpi/processor_perflib.c b/drivers/acpi/processor_perflib.c index a79b6ef8122a..8bd7500c6121 100644 --- a/drivers/acpi/processor_perflib.c +++ b/drivers/acpi/processor_perflib.c | |||
@@ -179,7 +179,7 @@ static int acpi_processor_get_performance_control(struct acpi_processor *pr) | |||
179 | pct = (union acpi_object *)buffer.pointer; | 179 | pct = (union acpi_object *)buffer.pointer; |
180 | if (!pct || (pct->type != ACPI_TYPE_PACKAGE) | 180 | if (!pct || (pct->type != ACPI_TYPE_PACKAGE) |
181 | || (pct->package.count != 2)) { | 181 | || (pct->package.count != 2)) { |
182 | ACPI_ERROR((AE_INFO, "Invalid _PCT data")); | 182 | printk(KERN_ERR PREFIX "Invalid _PCT data\n"); |
183 | result = -EFAULT; | 183 | result = -EFAULT; |
184 | goto end; | 184 | goto end; |
185 | } | 185 | } |
@@ -193,7 +193,7 @@ static int acpi_processor_get_performance_control(struct acpi_processor *pr) | |||
193 | if ((obj.type != ACPI_TYPE_BUFFER) | 193 | if ((obj.type != ACPI_TYPE_BUFFER) |
194 | || (obj.buffer.length < sizeof(struct acpi_pct_register)) | 194 | || (obj.buffer.length < sizeof(struct acpi_pct_register)) |
195 | || (obj.buffer.pointer == NULL)) { | 195 | || (obj.buffer.pointer == NULL)) { |
196 | ACPI_ERROR((AE_INFO, "Invalid _PCT data (control_register)")); | 196 | printk(KERN_ERR PREFIX "Invalid _PCT data (control_register)\n"); |
197 | result = -EFAULT; | 197 | result = -EFAULT; |
198 | goto end; | 198 | goto end; |
199 | } | 199 | } |
@@ -209,7 +209,7 @@ static int acpi_processor_get_performance_control(struct acpi_processor *pr) | |||
209 | if ((obj.type != ACPI_TYPE_BUFFER) | 209 | if ((obj.type != ACPI_TYPE_BUFFER) |
210 | || (obj.buffer.length < sizeof(struct acpi_pct_register)) | 210 | || (obj.buffer.length < sizeof(struct acpi_pct_register)) |
211 | || (obj.buffer.pointer == NULL)) { | 211 | || (obj.buffer.pointer == NULL)) { |
212 | ACPI_ERROR((AE_INFO, "Invalid _PCT data (status_register)")); | 212 | printk(KERN_ERR PREFIX "Invalid _PCT data (status_register)\n"); |
213 | result = -EFAULT; | 213 | result = -EFAULT; |
214 | goto end; | 214 | goto end; |
215 | } | 215 | } |
@@ -243,7 +243,7 @@ static int acpi_processor_get_performance_states(struct acpi_processor *pr) | |||
243 | 243 | ||
244 | pss = (union acpi_object *)buffer.pointer; | 244 | pss = (union acpi_object *)buffer.pointer; |
245 | if (!pss || (pss->type != ACPI_TYPE_PACKAGE)) { | 245 | if (!pss || (pss->type != ACPI_TYPE_PACKAGE)) { |
246 | ACPI_ERROR((AE_INFO, "Invalid _PSS data")); | 246 | printk(KERN_ERR PREFIX "Invalid _PSS data\n"); |
247 | result = -EFAULT; | 247 | result = -EFAULT; |
248 | goto end; | 248 | goto end; |
249 | } | 249 | } |
@@ -288,8 +288,8 @@ static int acpi_processor_get_performance_states(struct acpi_processor *pr) | |||
288 | (u32) px->control, (u32) px->status)); | 288 | (u32) px->control, (u32) px->status)); |
289 | 289 | ||
290 | if (!px->core_frequency) { | 290 | if (!px->core_frequency) { |
291 | ACPI_ERROR((AE_INFO, | 291 | printk(KERN_ERR PREFIX |
292 | "Invalid _PSS data: freq is zero")); | 292 | "Invalid _PSS data: freq is zero\n"); |
293 | result = -EFAULT; | 293 | result = -EFAULT; |
294 | kfree(pr->performance->states); | 294 | kfree(pr->performance->states); |
295 | goto end; | 295 | goto end; |