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