Merge tag 'linux-kselftest-kunit-fixes-5.11-rc3' of git://git.kernel.org/pub/scm...
[linux/fpc-iii.git] / arch / riscv / kernel / reset.c
blobee5878d968cc11c4398ef76dba90e0f5980e04c9
1 // SPDX-License-Identifier: GPL-2.0-only
2 /*
3 * Copyright (C) 2012 Regents of the University of California
4 */
6 #include <linux/reboot.h>
7 #include <linux/pm.h>
9 static void default_power_off(void)
11 while (1)
12 wait_for_interrupt();
15 void (*pm_power_off)(void) = default_power_off;
16 EXPORT_SYMBOL(pm_power_off);
18 void machine_restart(char *cmd)
20 do_kernel_restart(cmd);
21 while (1);
24 void machine_halt(void)
26 pm_power_off();
29 void machine_power_off(void)
31 pm_power_off();