1/* Public domain. */ 2 3#ifndef _LINUX_REBOOT_H 4#define _LINUX_REBOOT_H 5 6#include <sys/reboot.h> 7 8struct notifier_block; 9 10#define SYS_RESTART 0 11 12static inline void 13register_reboot_notifier(struct notifier_block *nb) 14{ 15} 16 17static inline void 18unregister_reboot_notifier(struct notifier_block *nb) 19{ 20} 21 22static inline void 23orderly_poweroff(bool force) 24{ 25 if (force) 26 reboot(RB_HALT | RB_POWERDOWN | RB_NOSYNC); 27 else 28 reboot(RB_HALT | RB_POWERDOWN); 29} 30 31#endif 32