]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blobdiff - arch/arm/mach-pxa/reset.c
ARM: restart: pxa: use new restart hook
[mirror_ubuntu-zesty-kernel.git] / arch / arm / mach-pxa / reset.c
index 01e9d643394a9d28160a98ccaee118761d8fb75f..c8497b00cdfe8bcb66f791c2907fbea345290571 100644 (file)
@@ -81,14 +81,17 @@ 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) {
        case 's':
                /* Jump into ROM at address 0 */
-               cpu_reset(0);
+               soft_restart(0);
                break;
        case 'g':
                do_gpio_reset();