projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
56c213f
)
ACPI processor: reset the throttling state once it's invalid
author
Zhang Rui
<
[email protected]
>
Mon, 11 May 2009 01:36:01 +0000
(09:36 +0800)
committer
Len Brown
<
[email protected]
>
Sat, 16 May 2009 03:21:54 +0000
(23:21 -0400)
If the BIOS hands us an invalid throttling state,
write a valid state.
http://bugzilla.kernel.org/show_bug.cgi?id=13259
Signed-off-by: Zhang Rui <
[email protected]
>
Tested-by: James Ettle <
[email protected]
>
Signed-off-by: Len Brown <
[email protected]
>
drivers/acpi/processor_throttling.c
patch
|
blob
|
history
diff --git
a/drivers/acpi/processor_throttling.c
b/drivers/acpi/processor_throttling.c
index 5f09fb8c0e0547bb2cd8d279f88c76c0aa944da7..7f16f5f8e7d395616a0d82ae8dbbd8fca8a336fb 100644
(file)
--- a/
drivers/acpi/processor_throttling.c
+++ b/
drivers/acpi/processor_throttling.c
@@
-838,6
+838,14
@@
static int acpi_processor_get_throttling_ptc(struct acpi_processor *pr)
ret = acpi_read_throttling_status(pr, &value);
if (ret >= 0) {
state = acpi_get_throttling_state(pr, value);
+ if (state == -1) {
+ ACPI_WARNING((AE_INFO,
+ "Invalid throttling state, reset\n"));
+ state = 0;
+ ret = acpi_processor_set_throttling(pr, state);
+ if (ret)
+ return ret;
+ }
pr->throttling.state = state;
}