Skip to content

Commit 953efb2

Browse files
Jisheng ZhangRussell King
authored andcommitted
ARM: 8568/1: reboot: remove duplicated local_irq_disable()
Once entering machine_halt() and machine_restart(), local_irq_disable() is called, and local irq is kept disabled, so the local_irq_disable() at the end of these two functions are not necessary, remove it. Signed-off-by: Jisheng Zhang <jszhang@marvell.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
1 parent bc5ce15 commit 953efb2

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

‎arch/arm/kernel/reboot.c‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,6 @@ void machine_halt(void)
104104
{
105105
local_irq_disable();
106106
smp_send_stop();
107-
108-
local_irq_disable();
109107
while (1);
110108
}
111109

@@ -150,6 +148,5 @@ void machine_restart(char *cmd)
150148

151149
/* Whoops - the platform was unable to reboot. Tell the user! */
152150
printk("Reboot failed -- System halted\n");
153-
local_irq_disable();
154151
while (1);
155152
}

0 commit comments

Comments
 (0)