From: Lukasz Anaczkowski Date: Tue, 21 Jul 2015 08:41:13 +0000 (+0200) Subject: intel_pstate: Add get_scaling cpu_defaults param to Knights Landing X-Git-Tag: v4.1.5~13 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=c97cda421f4d5c34638423fb7e07e7968703e619;p=users%2Fjedix%2Flinux-maple.git intel_pstate: Add get_scaling cpu_defaults param to Knights Landing commit 69cefc273f942bd7bb347a02e8b5b738d5f6e6f3 upstream. Scaling for Knights Landing is same as the default scaling (100000). When Knigts Landing support was added to the pstate driver, this parameter was omitted resulting in a kernel panic during boot. Fixes: b34ef932d79a (intel_pstate: Knights Landing support) Reported-by: Yasuaki Ishimatsu Signed-off-by: Dasaratharaman Chandramouli Signed-off-by: Lukasz Anaczkowski Acked-by: Kristen Carlson Accardi Signed-off-by: Rafael J. Wysocki Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/cpufreq/intel_pstate.c b/drivers/cpufreq/intel_pstate.c index c45d274a75c8..6f9d27f9001c 100644 --- a/drivers/cpufreq/intel_pstate.c +++ b/drivers/cpufreq/intel_pstate.c @@ -678,6 +678,7 @@ static struct cpu_defaults knl_params = { .get_max = core_get_max_pstate, .get_min = core_get_min_pstate, .get_turbo = knl_get_turbo_pstate, + .get_scaling = core_get_scaling, .set = core_set_pstate, }, };