xref: /openbsd-src/sys/dev/pci/drm/include/linux/reboot.h (revision 49261a4634916a3f85585ac893471037143f05f8)
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)13 register_reboot_notifier(struct notifier_block *nb)
14 {
15 }
16 
17 static inline void
unregister_reboot_notifier(struct notifier_block * nb)18 unregister_reboot_notifier(struct notifier_block *nb)
19 {
20 }
21 
22 static inline void
orderly_poweroff(bool force)23 orderly_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