xref: /openbsd-src/sys/dev/pci/drm/include/linux/reboot.h (revision 4e1ee0786f11cc571bd0be17d38e46f635c719fc)
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