diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2017-03-22 18:53:54 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2017-03-23 22:04:31 -0400 |
commit | 553953453b4b64fbccba31691257d006cee36613 (patch) | |
tree | 5361d08427293d31b6fad6cb8db2d3d1c7335f1a | |
parent | eb5139d1a2272487b223c4879ecd2a1b48c2250e (diff) |
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>
-rw-r--r-- | drivers/cpufreq/intel_pstate.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/cpufreq/intel_pstate.c b/drivers/cpufreq/intel_pstate.c index 87725e2ac3ac..2ef02fd568a6 100644 --- a/drivers/cpufreq/intel_pstate.c +++ b/drivers/cpufreq/intel_pstate.c | |||
@@ -2469,9 +2469,15 @@ static void __init copy_pid_params(struct pstate_adjust_policy *policy) | |||
2469 | #ifdef CONFIG_ACPI | 2469 | #ifdef CONFIG_ACPI |
2470 | static void intel_pstate_use_acpi_profile(void) | 2470 | static void intel_pstate_use_acpi_profile(void) |
2471 | { | 2471 | { |
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: | ||
2473 | pstate_funcs.get_target_pstate = | 2478 | pstate_funcs.get_target_pstate = |
2474 | get_target_pstate_use_cpu_load; | 2479 | get_target_pstate_use_cpu_load; |
2480 | } | ||
2475 | } | 2481 | } |
2476 | #else | 2482 | #else |
2477 | static void intel_pstate_use_acpi_profile(void) | 2483 | static void intel_pstate_use_acpi_profile(void) |