Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 145057
b: refs/heads/master
c: 4973b22
h: refs/heads/master
i:
  145055: 53cbba8
v: v3
  • Loading branch information
Zhang Rui authored and Len Brown committed May 16, 2009
1 parent 83b95e7 commit f8620c6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 56c213fa012f2bad9eff908292ff2500f840b020
refs/heads/master: 4973b22aa8c70fe036e3e0039f104cf5bb7fe2b1
8 changes: 8 additions & 0 deletions trunk/drivers/acpi/processor_throttling.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit f8620c6

Please sign in to comment.