iwlwifi: mvm: fix version check for GEO_TX_POWER_LIMIT support
[linux/fpc-iii.git] / arch / riscv / kernel / reset.c
blob2a53d26ffdd67f7062de4e0efbdc0a209cdf3597
1 /*
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>
15 #include <linux/export.h>
16 #include <asm/sbi.h>
18 void (*pm_power_off)(void) = machine_power_off;
19 EXPORT_SYMBOL(pm_power_off);
21 void machine_restart(char *cmd)
23 do_kernel_restart(cmd);
24 while (1);
27 void machine_halt(void)
29 machine_power_off();
32 void machine_power_off(void)
34 sbi_shutdown();
35 while (1);