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>
This commit is contained in:
Thomas Weißschuh 2024-06-09 09:27:16 +02:00 • committed by Rafael J. Wysocki
commit a231eed10e