From a6bc0d68c1659d6aaa90d9c8d091f8b5e1696acf Mon Sep 17 00:00:00 2001 From: Olav Haugan Date: Sun, 29 May 2016 19:53:00 -0700 Subject: [PATCH] smp: Do not wake up all idle CPUs Do not wake up cpus that are isolated. Change-Id: I07702bb5b738c1c75c49a2ca4cb08be0231ccb12 Signed-off-by: Olav Haugan Signed-off-by: Samuel Pascua Signed-off-by: Richard Raya --- kernel/smp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/smp.c b/kernel/smp.c index 2cb44f9e4498..7f3671ac1667 100644 --- a/kernel/smp.c +++ b/kernel/smp.c @@ -813,7 +813,7 @@ void wake_up_all_idle_cpus(void) for_each_possible_cpu(cpu) { preempt_disable(); - if (cpu != smp_processor_id() && cpu_online(cpu)) + if (cpu != smp_processor_id() && cpu_online(cpu) && !cpu_isolated(cpu)) wake_up_if_idle(cpu); preempt_enable(); }