Home
last modified time | relevance | path

Searched refs:sys_off (Results 1 – 2 of 2) sorted by relevance

/linux-6.12.1/drivers/misc/pvpanic/
Dpvpanic.c39 struct sys_off_handler *sys_off; member
98 struct sys_off_handler *sys_off; in pvpanic_synchronize_sys_off_handler() local
100 if (!(pi->events & PVPANIC_SHUTDOWN) == !pi->sys_off) in pvpanic_synchronize_sys_off_handler()
103 if (!pi->sys_off) { in pvpanic_synchronize_sys_off_handler()
104 sys_off = register_sys_off_handler(SYS_OFF_MODE_POWER_OFF, SYS_OFF_PRIO_LOW, in pvpanic_synchronize_sys_off_handler()
106 if (IS_ERR(sys_off)) in pvpanic_synchronize_sys_off_handler()
107 dev_warn(dev, "Could not register sys_off_handler: %pe\n", sys_off); in pvpanic_synchronize_sys_off_handler()
109 pi->sys_off = sys_off; in pvpanic_synchronize_sys_off_handler()
111 unregister_sys_off_handler(pi->sys_off); in pvpanic_synchronize_sys_off_handler()
112 pi->sys_off = NULL; in pvpanic_synchronize_sys_off_handler()
[all …]
/linux-6.12.1/kernel/
Dreboot.c656 struct sys_off_handler *sys_off = NULL; in do_kernel_power_off() local
666 sys_off = register_sys_off_handler(SYS_OFF_MODE_POWER_OFF, in do_kernel_power_off()
672 unregister_sys_off_handler(sys_off); in do_kernel_power_off()