summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/kernel/process.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/arm/kernel/process.c b/arch/arm/kernel/process.c
index 3161faf3d2e8..6d7f3ea8ec2a 100644
--- a/arch/arm/kernel/process.c
+++ b/arch/arm/kernel/process.c
@@ -92,10 +92,6 @@ __setup("hlt", hlt_setup);
void arm_machine_restart(char mode, const char *cmd)
{
- /* Disable interrupts first */
- local_irq_disable();
- local_fiq_disable();
-
/*
* Tell the mm system that we are going to reboot -
* we may need it to insert some 1:1 mappings so that
@@ -241,6 +237,10 @@ void machine_power_off(void)
void machine_restart(char *cmd)
{
+ /* Disable interrupts first */
+ local_irq_disable();
+ local_fiq_disable();
+
machine_shutdown();
arm_pm_restart(reboot_mode, cmd);
}