Skip to content

Commit 5539534

Browse files
committed
cpufreq: intel_pstate: Use load-based P-state selection more widely
Extend the set of systems for which intel_pstate will use the "powersave" P-state selection algorithm based on CPU load in the active mode by systems with ACPI preferred profile set to "tablet", "appliance PC", "desktop", or "workstation" (ie. everything with a specified preferred profile that is not a "server"). Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent eb5139d commit 5539534

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

drivers/cpufreq/intel_pstate.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2469,9 +2469,15 @@ static void __init copy_pid_params(struct pstate_adjust_policy *policy)
24692469
#ifdef CONFIG_ACPI
24702470
static void intel_pstate_use_acpi_profile(void)
24712471
{
2472-
if (acpi_gbl_FADT.preferred_profile == PM_MOBILE)
2472+
switch (acpi_gbl_FADT.preferred_profile) {
2473+
case PM_MOBILE:
2474+
case PM_TABLET:
2475+
case PM_APPLIANCE_PC:
2476+
case PM_DESKTOP:
2477+
case PM_WORKSTATION:
24732478
pstate_funcs.get_target_pstate =
24742479
get_target_pstate_use_cpu_load;
2480+
}
24752481
}
24762482
#else
24772483
static void intel_pstate_use_acpi_profile(void)

0 commit comments

Comments
 (0)