From: Bartlomiej Zolnierkiewicz Date: Fri, 20 Dec 2013 18:47:28 +0000 (+0100) Subject: intel_idle: do C1E promotion disable quirk for hotplugged CPUs X-Git-Tag: next-20140107~67^2~3^2~3 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=5d814c4aae58889a232efe7a19adf1dee0cc504b;p=karo-tx-linux.git intel_idle: do C1E promotion disable quirk for hotplugged CPUs If the system is booted with some CPUs offline C1E promotion disable quirk won't be applied because on_each_cpu() in intel_idle_cpuidle_driver_init() operates only on online CPUs. Fix it by adding the C1E promotion disable handling to intel_idle_cpu_init() (which is also called during CPU_ONLINE operation). Signed-off-by: Bartlomiej Zolnierkiewicz Signed-off-by: Kyungmin Park Cc: Len Brown Reviewed-by: Daniel Lezcano Signed-off-by: Rafael J. Wysocki --- diff --git a/drivers/idle/intel_idle.c b/drivers/idle/intel_idle.c index f80b700f821c..bff82c420ff8 100644 --- a/drivers/idle/intel_idle.c +++ b/drivers/idle/intel_idle.c @@ -686,6 +686,9 @@ static int intel_idle_cpu_init(int cpu) if (icpu->auto_demotion_disable_flags) smp_call_function_single(cpu, auto_demotion_disable, NULL, 1); + if (icpu->disable_promotion_to_c1e) + smp_call_function_single(cpu, c1e_promotion_disable, NULL, 1); + return 0; }