From: Robin Holt Date: Mon, 8 Jul 2013 23:01:40 +0000 (-0700) Subject: arm64: Use reboot_mode and new pm_restart prototype X-Git-Tag: next-20130717~73^2 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=97bf0cf83fb6b4abda26be819bc013f1add23d5f;p=karo-tx-linux.git arm64: Use reboot_mode and new pm_restart prototype 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 --- diff --git a/arch/arm64/include/asm/system_misc.h b/arch/arm64/include/asm/system_misc.h index a6e1750369ef..7a18fabbe0f6 100644 --- a/arch/arm64/include/asm/system_misc.h +++ b/arch/arm64/include/asm/system_misc.h @@ -23,6 +23,7 @@ #include #include #include +#include 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) diff --git a/arch/arm64/kernel/process.c b/arch/arm64/kernel/process.c index 46f02c3b5015..14ebb02d4b3a 100644 --- a/arch/arm64/kernel/process.c +++ b/arch/arm64/kernel/process.c @@ -42,6 +42,7 @@ #include #include #include +#include #include #include @@ -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.