summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-pxa/reset.c
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2011-11-04 15:15:53 +0100
committerRussell King <rmk+kernel@arm.linux.org.uk>2012-01-05 13:57:17 +0100
commit271a74fc875210d3dfcc03d557fb5d86d3990a0f (patch)
treef428c434f573180885c4c2404b706f4bf4c550bb /arch/arm/mach-pxa/reset.c
parentARM: restart: prima2: use new restart hook (diff)
downloadlinux-271a74fc875210d3dfcc03d557fb5d86d3990a0f.tar.xz
linux-271a74fc875210d3dfcc03d557fb5d86d3990a0f.zip
ARM: restart: pxa: use new restart hook
Hook these platforms restart code into the new restart hook rather than using arch_reset(). Acked-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-pxa/reset.c')
-rw-r--r--arch/arm/mach-pxa/reset.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/arm/mach-pxa/reset.c b/arch/arm/mach-pxa/reset.c
index b8bcda15da81..c8497b00cdfe 100644
--- a/arch/arm/mach-pxa/reset.c
+++ b/arch/arm/mach-pxa/reset.c
@@ -81,8 +81,11 @@ static void do_hw_reset(void)
OSMR3 = OSCR + 368640; /* ... in 100 ms */
}
-void arch_reset(char mode, const char *cmd)
+void pxa_restart(char mode, const char *cmd)
{
+ local_irq_disable();
+ local_fiq_disable();
+
clear_reset_status(RESET_STATUS_ALL);
switch (mode) {