treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / arch / hexagon / kernel / reset.c
blobda36114d928f055a2c6f2e9aae74b7839b30010c
1 // SPDX-License-Identifier: GPL-2.0-only
2 /*
3 * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved.
4 */
6 #include <linux/smp.h>
7 #include <asm/hexagon_vm.h>
9 void machine_power_off(void)
11 smp_send_stop();
12 __vmstop();
15 void machine_halt(void)
19 void machine_restart(char *cmd)
23 void (*pm_power_off)(void) = NULL;
24 EXPORT_SYMBOL(pm_power_off);