Skip to contentSkip to conversation

ACPI: Add reboot mechanism

PATCH In review [email protected] 1 participant 1 message Dec 13, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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.

---

 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
diff -puN drivers/acpi/Makefile~acpi-add-reboot-mechanism drivers/acpi/Makefile
@@ -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
diff -puN /dev/null include/acpi/reboot.h
@@ -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

_