Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 298871
b: refs/heads/master
c: eeaab2d
h: refs/heads/master
i:
  298869: ac55958
  298867: 3414b9e
  298863: 906e3b4
v: v3
  • Loading branch information
Len Brown committed Apr 7, 2012
1 parent ab5b261 commit 7266415
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: aaef292acf3a78d9c0bb6fb72226077d286b45d7
refs/heads/master: eeaab2d8af2cf1d36d7086f22e9de42d6dd2995c
2 changes: 1 addition & 1 deletion trunk/drivers/acpi/processor_idle.c
Original file line number Diff line number Diff line change
Expand Up @@ -786,7 +786,7 @@ static int acpi_idle_play_dead(struct cpuidle_device *dev, int index)
while (1) {

if (cx->entry_method == ACPI_CSTATE_HALT)
halt();
safe_halt();
else if (cx->entry_method == ACPI_CSTATE_SYSTEMIO) {
inb(cx->address);
/* See comment in acpi_idle_do_entry() */
Expand Down
5 changes: 4 additions & 1 deletion trunk/drivers/cpuidle/cpuidle.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ static cpuidle_enter_t cpuidle_enter_ops;
/**
* cpuidle_play_dead - cpu off-lining
*
* Only returns in case of an error
* Returns in case of an error or no driver
*/
int cpuidle_play_dead(void)
{
Expand All @@ -83,6 +83,9 @@ int cpuidle_play_dead(void)
int i, dead_state = -1;
int power_usage = -1;

if (!drv)
return -ENODEV;

/* Find lowest-power state that supports long-term idle */
for (i = CPUIDLE_DRIVER_STATE_START; i < drv->state_count; i++) {
struct cpuidle_state *s = &drv->states[i];
Expand Down

0 comments on commit 7266415

Please sign in to comment.