Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 6023
b: refs/heads/master
c: 8dbddf1
h: refs/heads/master
i:
  6021: b0504a3
  6019: 6918bda
  6015: a78646e
v: v3
  • Loading branch information
Eric W. Biederman authored and Linus Torvalds committed Aug 27, 2005
1 parent 8c73d18 commit fdbe87f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 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: 6a029a90f5b93e2b50bcbbaef05ef91fa0c1d6b3
refs/heads/master: 8dbddf17824861f2298de093549e6493d9844835
6 changes: 5 additions & 1 deletion trunk/drivers/acpi/sleep/poweroff.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,11 @@ void acpi_power_off(void)

static int acpi_shutdown(struct sys_device *x)
{
return acpi_sleep_prepare(ACPI_STATE_S5);
if (system_state == SYSTEM_POWER_OFF) {
/* Prepare if we are going to power off the system */
return acpi_sleep_prepare(ACPI_STATE_S5);
}
return 0;
}

static struct sysdev_class acpi_sysclass = {
Expand Down

0 comments on commit fdbe87f

Please sign in to comment.