diff options
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/cpufreq/intel_pstate.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/cpufreq/intel_pstate.c b/drivers/cpufreq/intel_pstate.c index e7e808d9a8af..872c5772c5d3 100644 --- a/drivers/cpufreq/intel_pstate.c +++ b/drivers/cpufreq/intel_pstate.c | |||
| @@ -1019,6 +1019,7 @@ static struct cpufreq_driver intel_pstate_driver = { | |||
| 1019 | 1019 | ||
| 1020 | static int __initdata no_load; | 1020 | static int __initdata no_load; |
| 1021 | static int __initdata no_hwp; | 1021 | static int __initdata no_hwp; |
| 1022 | static int __initdata hwp_only; | ||
| 1022 | static unsigned int force_load; | 1023 | static unsigned int force_load; |
| 1023 | 1024 | ||
| 1024 | static int intel_pstate_msrs_not_valid(void) | 1025 | static int intel_pstate_msrs_not_valid(void) |
| @@ -1216,6 +1217,9 @@ static int __init intel_pstate_init(void) | |||
| 1216 | if (cpu_has(c,X86_FEATURE_HWP) && !no_hwp) | 1217 | if (cpu_has(c,X86_FEATURE_HWP) && !no_hwp) |
| 1217 | intel_pstate_hwp_enable(); | 1218 | intel_pstate_hwp_enable(); |
| 1218 | 1219 | ||
| 1220 | if (!hwp_active && hwp_only) | ||
| 1221 | goto out; | ||
| 1222 | |||
| 1219 | rc = cpufreq_register_driver(&intel_pstate_driver); | 1223 | rc = cpufreq_register_driver(&intel_pstate_driver); |
| 1220 | if (rc) | 1224 | if (rc) |
| 1221 | goto out; | 1225 | goto out; |
| @@ -1250,6 +1254,8 @@ static int __init intel_pstate_setup(char *str) | |||
| 1250 | no_hwp = 1; | 1254 | no_hwp = 1; |
| 1251 | if (!strcmp(str, "force")) | 1255 | if (!strcmp(str, "force")) |
| 1252 | force_load = 1; | 1256 | force_load = 1; |
| 1257 | if (!strcmp(str, "hwp_only")) | ||
| 1258 | hwp_only = 1; | ||
| 1253 | return 0; | 1259 | return 0; |
| 1254 | } | 1260 | } |
| 1255 | early_param("intel_pstate", intel_pstate_setup); | 1261 | early_param("intel_pstate", intel_pstate_setup); |
