Lines 297-302
static int hwp_active __read_mostly;
Link Here
|
297 |
static int hwp_mode_bdw __read_mostly; |
297 |
static int hwp_mode_bdw __read_mostly; |
298 |
static bool per_cpu_limits __read_mostly; |
298 |
static bool per_cpu_limits __read_mostly; |
299 |
static bool hwp_boost __read_mostly; |
299 |
static bool hwp_boost __read_mostly; |
|
|
300 |
static bool global_no_turbo __read_mostly; |
300 |
|
301 |
|
301 |
static struct cpufreq_driver *intel_pstate_driver __read_mostly; |
302 |
static struct cpufreq_driver *intel_pstate_driver __read_mostly; |
302 |
|
303 |
|
Lines 2263-2269
static int intel_pstate_register_driver(struct cpufreq_driver *driver)
Link Here
|
2263 |
|
2264 |
|
2264 |
memset(&global, 0, sizeof(global)); |
2265 |
memset(&global, 0, sizeof(global)); |
2265 |
global.max_perf_pct = 100; |
2266 |
global.max_perf_pct = 100; |
2266 |
|
2267 |
global.no_turbo = global_no_turbo; |
2267 |
intel_pstate_driver = driver; |
2268 |
intel_pstate_driver = driver; |
2268 |
ret = cpufreq_register_driver(intel_pstate_driver); |
2269 |
ret = cpufreq_register_driver(intel_pstate_driver); |
2269 |
if (ret) { |
2270 |
if (ret) { |
Lines 2569-2574
static int __init intel_pstate_setup(char *str)
Link Here
|
2569 |
hwp_only = 1; |
2570 |
hwp_only = 1; |
2570 |
if (!strcmp(str, "per_cpu_perf_limits")) |
2571 |
if (!strcmp(str, "per_cpu_perf_limits")) |
2571 |
per_cpu_limits = true; |
2572 |
per_cpu_limits = true; |
|
|
2573 |
if (!strcmp(str, "no_turbo")) { |
2574 |
global_no_turbo = 1; |
2575 |
pr_info("Turbo disabled by boot options\n"); |
2576 |
} |
2572 |
|
2577 |
|
2573 |
#ifdef CONFIG_ACPI |
2578 |
#ifdef CONFIG_ACPI |
2574 |
if (!strcmp(str, "support_acpi_ppc")) |
2579 |
if (!strcmp(str, "support_acpi_ppc")) |