Skip to content

Commit 9a43102

Browse files
superm1rafaeljw
authored andcommitted
platform/x86/amd: pmf: Add balanced-performance to hidden choices
Acer's WMI driver uses balanced-performance but AMD-PMF doesn't. In case a machine binds with both drivers let amd-pmf use balanced-performance as well. Fixes: 6888347 ("ACPI: platform_profile: Allow multiple handlers") Suggested-by: Antheas Kapenekakis <lkml@antheas.dev> Signed-off-by: Mario Limonciello <mario.limonciello@amd.com> Tested-by: Antheas Kapenekakis <lkml@antheas.dev> Tested-by: Derek J. Clark <derekjohn.clark@gmail.com> Acked-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Link: https://patch.msgid.link/20250228170155.2623386-4-superm1@kernel.org Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 44e94fe commit 9a43102

File tree

1 file changed

+2
-0
lines changed
  • drivers/platform/x86/amd/pmf

1 file changed

+2
-0
lines changed

drivers/platform/x86/amd/pmf/sps.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,7 @@ int amd_pmf_get_pprof_modes(struct amd_pmf_dev *pmf)
297297

298298
switch (pmf->current_profile) {
299299
case PLATFORM_PROFILE_PERFORMANCE:
300+
case PLATFORM_PROFILE_BALANCED_PERFORMANCE:
300301
mode = POWER_MODE_PERFORMANCE;
301302
break;
302303
case PLATFORM_PROFILE_BALANCED:
@@ -391,6 +392,7 @@ static int amd_pmf_profile_set(struct device *dev,
391392
static int amd_pmf_hidden_choices(void *drvdata, unsigned long *choices)
392393
{
393394
set_bit(PLATFORM_PROFILE_QUIET, choices);
395+
set_bit(PLATFORM_PROFILE_BALANCED_PERFORMANCE, choices);
394396

395397
return 0;
396398
}

0 commit comments

Comments
 (0)