]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ACPI: battery: create alarm sysfs attribute atomically
authorThomas Weißschuh <linux@weissschuh.net>
Sun, 9 Jun 2024 07:27:16 +0000 (09:27 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 13 Jun 2024 19:26:14 +0000 (21:26 +0200)
commita231eed10ed5a290129fda36ad7bcc263c53ff7d
tree4dd2ebd9a0db8b2b4707fa894f1931f38ba99e21
parentaa532663072c445ba92cb9438ed80533c29bbacb
ACPI: battery: create alarm sysfs attribute atomically

Let the power supply core register the attribute.
This ensures that the attribute is created before the device is
announced to userspace, avoid a race condition.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/battery.c