]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ACPI: SBS: manage alarm sysfs attribute through psy core
authorThomas Weißschuh <linux@weissschuh.net>
Sun, 9 Jun 2024 11:13:28 +0000 (13:13 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Aug 2024 13:34:07 +0000 (15:34 +0200)
commit25d53aad9173b48d944f9b16d3dd2dc672b8b34f
tree790497489e61091c3776b97a385030e886f57334
parent7953227c3c0e26bd4a5d59643d5b3de166f2871b
ACPI: SBS: manage alarm sysfs attribute through psy core

[ Upstream commit 6bad28cfc30988a845fb3f59a99f4b8a4ce8fe95 ]

Let the power supply core register the attribute.

This ensures that the attribute is created before the device is
announced to userspace, avoiding a race condition.

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