]> git.ipfire.org Git - thirdparty/linux.git/commit
platform/x86: asus-wmi: Use platform_profile_cycle()
authorArmin Wolf <W_Armin@gmx.de>
Thu, 7 Nov 2024 00:38:11 +0000 (01:38 +0100)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Tue, 12 Nov 2024 09:55:35 +0000 (11:55 +0200)
commitb0955ce555478e24ed34c7d14f62fdf9c07b15cb
tree33ba7cfc891d5b4aa4d104d08b9c4fc0c1a2a5c6
parent895085ec3f2ed7a26389943729e2904df1f88dc0
platform/x86: asus-wmi: Use platform_profile_cycle()

Replace throttle_thermal_policy_switch_next() with
platform_profile_cycle() to reduce code duplication and avoid a
potential race condition with the platform profile handler.

Suggested-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Armin Wolf <W_Armin@gmx.de>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20241107003811.615574-3-W_Armin@gmx.de
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/asus-wmi.c