ACPI: Add reboot mechanism
Subsystems (2)
PATCH 4/8 ACPI: Add reboot mechanism
From: Aaron Durbin <[email protected]>
Add the ability to reset the machine using the RESET_REG in ACPI's FADT table.
[[email protected]: cleanups]
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 | 44 ++++++++++++++++++++++++++++++++++++++++ include/acpi/reboot.h | 10 +++++++++ 3 files changed, 55 insertions(+), 1 deletion(-)
drivers/acpi/Makefile renamed from drivers/acpi/Makefile~acpi-add-reboot-mechanism +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 +44 -0
44 lines not on this page · raw message
include/acpi/reboot.h new file +10 -0
@@ -0,0 +1,10 @@ +#ifndef __ACPI_REBOOT_H +#define __ACPI_REBOOT_H + +#ifdef CONFIG_ACPI +extern void acpi_reboot (void ); +#else +static inline void acpi_reboot (void ) { } +#endif + +#endif
_