]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
arm64: Use reboot_mode and new pm_restart prototype
authorRobin Holt <holt@sgi.com>
Mon, 8 Jul 2013 23:01:40 +0000 (16:01 -0700)
committerCatalin Marinas <catalin.marinas@arm.com>
Mon, 15 Jul 2013 17:06:09 +0000 (18:06 +0100)
With commit 7b6d864b (reboot: arm: change reboot_mode to use enum
reboot_mode), the arm_pm_restart prototype has been changed to use the
new enum reboot_mode. Modify arm64 accordingly.

Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/system_misc.h
arch/arm64/kernel/process.c

index a6e1750369efcb32ea589b6450589515bda1c283..7a18fabbe0f6c5e6579bf4a0b4b88113d1d0adee 100644 (file)
@@ -23,6 +23,7 @@
 #include <linux/compiler.h>
 #include <linux/linkage.h>
 #include <linux/irqflags.h>
+#include <linux/reboot.h>
 
 struct pt_regs;
 
@@ -41,7 +42,7 @@ extern void show_pte(struct mm_struct *mm, unsigned long addr);
 extern void __show_regs(struct pt_regs *);
 
 void soft_restart(unsigned long);
-extern void (*arm_pm_restart)(char str, const char *cmd);
+extern void (*arm_pm_restart)(enum reboot_mode reboot_mode, const char *cmd);
 
 #define UDBG_UNDEFINED (1 << 0)
 #define UDBG_SYSCALL   (1 << 1)
index 46f02c3b5015ece9b1ca0ab4d57d9540a3288e67..14ebb02d4b3a0e648b0429cf90620102c216e789 100644 (file)
@@ -42,6 +42,7 @@
 #include <linux/hw_breakpoint.h>
 #include <linux/personality.h>
 #include <linux/notifier.h>
+#include <linux/reboot.h>
 
 #include <asm/compat.h>
 #include <asm/cacheflush.h>
@@ -81,7 +82,7 @@ void soft_restart(unsigned long addr)
 void (*pm_power_off)(void);
 EXPORT_SYMBOL_GPL(pm_power_off);
 
-void (*arm_pm_restart)(char str, const char *cmd);
+void (*arm_pm_restart)(enum reboot_mode reboot_mode, const char *cmd);
 EXPORT_SYMBOL_GPL(arm_pm_restart);
 
 void arch_cpu_idle_prepare(void)
@@ -132,7 +133,7 @@ void machine_restart(char *cmd)
 
        /* Now call the architecture specific reboot code. */
        if (arm_pm_restart)
-               arm_pm_restart('h', cmd);
+               arm_pm_restart(reboot_mode, cmd);
 
        /*
         * Whoops - the architecture was unable to reboot.