arm64: dts: Revert "specify console via command line"
[linux/fpc-iii.git] / arch / csky / kernel / power.c
blob923ee4e381b8151180e75add8f66f9a612d3a558
1 // SPDX-License-Identifier: GPL-2.0
2 // Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd.
4 #include <linux/reboot.h>
6 void (*pm_power_off)(void);
7 EXPORT_SYMBOL(pm_power_off);
9 void machine_power_off(void)
11 local_irq_disable();
12 if (pm_power_off)
13 pm_power_off();
14 asm volatile ("bkpt");
17 void machine_halt(void)
19 local_irq_disable();
20 if (pm_power_off)
21 pm_power_off();
22 asm volatile ("bkpt");
25 void machine_restart(char *cmd)
27 local_irq_disable();
28 do_kernel_restart(cmd);
29 asm volatile ("bkpt");