1 /* Public domain. */ 2 3 #ifndef _LINUX_REBOOT_H 4 #define _LINUX_REBOOT_H 5 6 #include <sys/reboot.h> 7 8 struct notifier_block; 9 10 #define SYS_RESTART 0 11 12 static inline void register_reboot_notifier(struct notifier_block * nb)13register_reboot_notifier(struct notifier_block *nb) 14 { 15 } 16 17 static inline void unregister_reboot_notifier(struct notifier_block * nb)18unregister_reboot_notifier(struct notifier_block *nb) 19 { 20 } 21 22 static inline void orderly_poweroff(bool force)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