ACPI: platform_profile: Use `scoped_cond_guard`
authorMario Limonciello <mario.limonciello@amd.com>
Fri, 6 Dec 2024 03:19:05 +0000 (21:19 -0600)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Tue, 10 Dec 2024 17:17:59 +0000 (19:17 +0200)
commit1f3ac55c2e65af30a37a460a1a7cc5c7eb74747d
tree8dacf5bea3aac9b3515d9ff625e34f8975be1ee1
parent55b1e68134bfa041960282fdefef7f3e56add703
ACPI: platform_profile: Use `scoped_cond_guard`

Migrate away from using an interruptible mutex to scoped_cond_guard
in all functions. While changing, move the sysfs notification
used in platform_profile_store() outside of mutex scope.

Reviewed-by: Armin Wolf <W_Armin@gmx.de>
Tested-by: Mark Pearson <mpearson-lenovo@squebb.ca>
Reviewed-by: Mark Pearson <mpearson-lenovo@squebb.ca>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Link: https://lore.kernel.org/r/20241206031918.1537-10-mario.limonciello@amd.com
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/acpi/platform_profile.c