Commit b785abaf authored by Tom Rini's avatar Tom Rini Committed by Linus Torvalds

[PATCH] ppc32: remove cli()/sti() in arch/ppc/platforms/pal4_setup.c

Replace cli() function calls with local_irq_disable() in shutdown / restart
code for pal4.
Signed-off-by: default avatarJames Nelson <james4765@gmail.com>
Signed-off-by: default avatarTom Rini <trini@kernel.crashing.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 76379ca3
......@@ -81,7 +81,7 @@ pal4_show_cpuinfo(struct seq_file *m)
static void
pal4_restart(char *cmd)
{
__cli();
local_irq_disable();
__asm__ __volatile__("lis 3,0xfff0\n \
ori 3,3,0x100\n \
mtspr 26,3\n \
......@@ -95,7 +95,7 @@ pal4_restart(char *cmd)
static void
pal4_power_off(void)
{
__cli();
local_irq_disable();
for(;;);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment