]> git.baikalelectronics.ru Git - kernel.git/commit
platform/x86/amd/pmf: Add helper routine to check pprof is balanced
authorShyam Sundar S K <Shyam-sundar.S-k@amd.com>
Wed, 25 Jan 2023 09:59:33 +0000 (15:29 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Feb 2023 10:28:06 +0000 (11:28 +0100)
commit23fabadee2fb46e9e201ec82acfa780ad28a4c7e
treea9969bc6c5ae41de6a7286cdd390d97389fb7760
parentee6c14a1d3026a233b552523cacb2f31cd2f7475
platform/x86/amd/pmf: Add helper routine to check pprof is balanced

[ Upstream commit 51036e1e165abefd12bd0afc6d86f91ba9784f2a ]

Add helper routine to check if the current platform profile
is balanced mode and remove duplicate code occurrences.

Signed-off-by: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
Link: https://lore.kernel.org/r/20230125095936.3292883-3-Shyam-sundar.S-k@amd.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Stable-dep-of: de2601a9f3d3 ("platform/x86/amd/pmf: Fix to update SPS thermals when power supply change")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/platform/x86/amd/pmf/cnqf.c
drivers/platform/x86/amd/pmf/pmf.h
drivers/platform/x86/amd/pmf/sps.c