diff options
| -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) |
