diff options
| author | Dhananjay Ugwekar <Dhananjay.Ugwekar@amd.com> | 2024-12-04 14:48:41 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-02-21 14:01:40 +0100 |
| commit | 4ee13803d185fa7273461962edcdab0b4d620615 (patch) | |
| tree | d77448c3e82ba9abe90e514d3b57576961e5b858 /include/uapi/linux | |
| parent | 8ce0d636da0fb6ecb3458dafe9c4220b8c064de7 (diff) | |
| download | linux-4ee13803d185fa7273461962edcdab0b4d620615.tar.gz linux-4ee13803d185fa7273461962edcdab0b4d620615.tar.bz2 linux-4ee13803d185fa7273461962edcdab0b4d620615.zip | |
cpufreq/amd-pstate: Remove the cppc_state check in offline/online functions
[ Upstream commit b78f8c87ec3e7499bb049986838636d3afbc7ece ]
Only amd_pstate_epp driver (i.e. cppc_state = ACTIVE) enters the
amd_pstate_epp_offline() and amd_pstate_epp_cpu_online() functions,
so remove the unnecessary if condition checking if cppc_state is
equal to AMD_PSTATE_ACTIVE.
Signed-off-by: Dhananjay Ugwekar <Dhananjay.Ugwekar@amd.com>
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
Reviewed-by: Gautham R. Shenoy <gautham.shenoy@amd.com>
Link: https://lore.kernel.org/r/20241204144842.164178-5-Dhananjay.Ugwekar@amd.com
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Stable-dep-of: 3ace20038e19 ("cpufreq/amd-pstate: Fix cpufreq_policy ref counting")
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include/uapi/linux')
0 files changed, 0 insertions, 0 deletions
