ACPI: Add new tiny-power-button driver to directly signal init
authorJosh Triplett <josh@joshtriplett.org>
Tue, 11 Feb 2020 23:38:06 +0000 (15:38 -0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 13 Feb 2020 22:36:23 +0000 (23:36 +0100)
commita1b93e890d4f3e8c134095b52954bfbccaea29a6
treeb07606f1c4948f1f668931f44ae4afa979d8c166
parentac1cc6b4856ffa7ecb818b3ceb82bfc43597d613
ACPI: Add new tiny-power-button driver to directly signal init

Virtual machines often use an ACPI power button event to tell the
machine to shut down gracefully.

Provide an extremely lightweight "tiny power button" driver to handle
this event by signaling init directly, rather than running a separate
daemon (such as acpid or systemd-logind) that adds to startup time and
VM image complexity.

The kernel configuration defines the default signal to send init, and
userspace can change this signal via a module parameter.

Suggested-by: "Rafael J. Wysocki" <rafael@kernel.org>
Signed-off-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/Kconfig
drivers/acpi/Makefile
drivers/acpi/tiny-power-button.c [new file with mode: 0644]