* [PATCH 2/2] ACPI processor: reset the throttling state once it's invalid
@ 2009-05-11 1:36 Zhang Rui
2009-05-16 3:06 ` Len Brown
0 siblings, 1 reply; 2+ messages in thread
From: Zhang Rui @ 2009-05-11 1:36 UTC (permalink / raw)
To: Len Brown; +Cc: linux-acpi, Zhang, Rui, theholyettlz
Reset the throttling state once we find that it's invalid.
http://bugzilla.kernel.org/show_bug.cgi?id=13259
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Tested-by: James Ettle <theholyettlz@googlemail.com>
---
drivers/acpi/processor_throttling.c | 8 ++++++++
1 file changed, 8 insertions(+)
Index: linux-2.6/drivers/acpi/processor_throttling.c
===================================================================
--- linux-2.6.orig/drivers/acpi/processor_throttling.c
+++ linux-2.6/drivers/acpi/processor_throttling.c
@@ -840,6 +840,14 @@ static int acpi_processor_get_throttling
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;
}
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH 2/2] ACPI processor: reset the throttling state once it's invalid
2009-05-11 1:36 [PATCH 2/2] ACPI processor: reset the throttling state once it's invalid Zhang Rui
@ 2009-05-16 3:06 ` Len Brown
0 siblings, 0 replies; 2+ messages in thread
From: Len Brown @ 2009-05-16 3:06 UTC (permalink / raw)
To: Zhang Rui; +Cc: linux-acpi, theholyettlz
applied
thanks,
Len Brown, Intel Open Source Technology Center
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-05-16 3:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-11 1:36 [PATCH 2/2] ACPI processor: reset the throttling state once it's invalid Zhang Rui
2009-05-16 3:06 ` Len Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox