Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 241712
b: refs/heads/master
c: 6734fe5
h: refs/heads/master
v: v3
  • Loading branch information
Matthew Garrett authored and Len Brown committed Mar 23, 2011
1 parent 24be28d commit bf6a4ff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 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: f17d9cbf20c4734c4199caa6dee87047f2f8278f
refs/heads/master: 6734fe57a07b2dd23ef1ef2ac1f790747e53eefc
9 changes: 4 additions & 5 deletions trunk/drivers/acpi/reboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ void acpi_reboot(void)

rr = &acpi_gbl_FADT.reset_register;

/* Is the reset register supported? */
if (!(acpi_gbl_FADT.flags & ACPI_FADT_RESET_REGISTER) ||
rr->bit_width != 8 || rr->bit_offset != 0)
/* Is the reset register supported? The spec says we should be
* checking the bit width and bit offset, but Windows ignores
* these fields */
if (!(acpi_gbl_FADT.flags & ACPI_FADT_RESET_REGISTER))
return;

reset_value = acpi_gbl_FADT.reset_value;
Expand Down Expand Up @@ -45,6 +46,4 @@ void acpi_reboot(void)
acpi_reset();
break;
}
/* Wait ten seconds */
acpi_os_stall(10000000);
}

0 comments on commit bf6a4ff

Please sign in to comment.