acpi: add the abity to reset the system using RESET_REG in FADT table
Subsystems (2)
PATCH 3/4 acpi: add the abity to reset the system using RESET_REG in FADT table
From: Aaron Durbin <[email protected]>
Add the ability to reset the machine using the RESET_REG in ACPI's FADT table.
Signed-off-by Aaron Durbin <[email protected]>
Cc Len Brown <[email protected]>
Cc Andi Kleen <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
drivers/acpi/Makefile | 2 - drivers/acpi/reboot.c | 50 ++++++++++++++++++++++++++++++++++++++++ include/acpi/reboot.h | 14 ++++++----- 3 files changed, 59 insertions(+), 7 deletions(-)
drivers/acpi/Makefile renamed from drivers/acpi/Makefile~acpi-add-the-abity-to-reset-the-system-using-reset_reg-in-fadt-table +1 -1
@@ -21,7 +21,7 @@ obj-$(CONFIG_X86) += blacklist.o # # ACPI Core Subsystem (Interpreter) # -obj-y += osl.o utils.o \ +obj-y += osl.o utils.o reboot.o\ dispatcher/ events/ executer/ hardware/ \ namespace/ parser/ resources/ tables/ \ utilities/
drivers/acpi/reboot.c new file +50 -0
50 lines not on this page · raw message
include/acpi/reboot.h renamed from include/acpi/reboot.h~acpi-add-the-abity-to-reset-the-system-using-reset_reg-in-fadt-table +8 -6
@@ -1,9 +1,11 @@ +#ifndef __ACPI_REBOOT_H +#define __ACPI_REBOOT_H + +#ifdef CONFIG_ACPI +extern void acpi_reboot (void ); +#else +static inline void acpi_reboot (void ) { } +#endif -/* -* Dummy placeholder to make the EFI patches apply to the x86 tree. -* Andrew/Len, please just kill this file if you encounter it. -*/ -#ifndef acpi_reboot -# define acpi_reboot () do { } while (0)#endif
_