]>
git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blob - arch/riscv/kernel/reset.c
2 * Copyright (C) 2012 Regents of the University of California
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation, version 2.
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
14 #include <linux/reboot.h>
17 static void default_power_off(void)
23 void (*pm_power_off
)(void) = default_power_off
;
25 void machine_restart(char *cmd
)
27 do_kernel_restart(cmd
);
31 void machine_halt(void)
36 void machine_power_off(void)