diff options
| author | Dhananjay Ugwekar <Dhananjay.Ugwekar@amd.com> | 2024-10-04 12:23:04 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-11-01 01:58:18 +0100 |
| commit | 8552150e5d804cebec436b86288dd2235b136156 (patch) | |
| tree | d2c8ef4721e5cf2fcdd33eab5e94adbc57d13dab /lib | |
| parent | 49454f09936a9a96edfb047156889879cb4001eb (diff) | |
| download | linux-8552150e5d804cebec436b86288dd2235b136156.tar.gz linux-8552150e5d804cebec436b86288dd2235b136156.tar.bz2 linux-8552150e5d804cebec436b86288dd2235b136156.zip | |
cpufreq/amd-pstate: Fix amd_pstate mode switch on shared memory systems
[ Upstream commit c10e50a469b5ec91eabf653526a22bdce03a9bca ]
While switching the driver mode between active and passive, Collaborative
Processor Performance Control (CPPC) is disabled in
amd_pstate_unregister_driver(). But, it is not enabled back while registering
the new driver (passive or active). This leads to the new driver mode not
working correctly, so enable it back in amd_pstate_register_driver().
Fixes: 3ca7bc818d8c ("cpufreq: amd-pstate: Add guided mode control support via sysfs")
Signed-off-by: Dhananjay Ugwekar <Dhananjay.Ugwekar@amd.com>
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
Link: https://lore.kernel.org/r/20241004122303.94283-1-Dhananjay.Ugwekar@amd.com
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions
