summaryrefslogtreecommitdiff
path: root/samples/workqueue
diff options
context:
space:
mode:
authorKuan-Wei Chiu <visitorckw@gmail.com>2026-04-12 21:19:51 +0000
committerGeert Uytterhoeven <geert@linux-m68k.org>2026-04-13 12:16:10 +0200
commitad9d2cd065d15c2ad992cb5db51a5bdc847e2909 (patch)
tree16a39ed228555970ee972f6effaf2b832022bc85 /samples/workqueue
parentcbd3b8ef970a2a4738c3b237ca8fe3fe5985627e (diff)
power: reset: Add QEMU virt-ctrl driver
Add a new driver for the 'virt-ctrl' device found on QEMU virt machines (e.g. m68k). This device provides a simple interface for system reset and power off [1]. This driver utilizes the modern system-off API to register callbacks for both system restart and power off. It also registers a reboot notifier to catch SYS_HALT events, ensuring that LINUX_REBOOT_CMD_HALT is properly handled. It is designed to be generic and can be reused by other architectures utilizing this QEMU device. Link: https://gitlab.com/qemu-project/qemu/-/blob/v10.2.0/hw/misc/virt_ctrl.c [1] Signed-off-by: Kuan-Wei Chiu <visitorckw@gmail.com> Acked-by: Sebastian Reichel <sebastian.reichel@collabora.com> Link: https://patch.msgid.link/20260412211952.3564033-2-visitorckw@gmail.com Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Diffstat (limited to 'samples/workqueue')
0 files changed, 0 insertions, 0 deletions