From 8e9cbdf9fc1d8fa3f56083b9c67b56393aafff3c Mon Sep 17 00:00:00 2001 From: Hyunki Koo Date: Thu, 8 Mar 2018 18:07:29 +0900 Subject: [PATCH] [COMMON] kernel: irq: don't migrate irqs with IRQD_GIC_MULTI_TARGET set Don't migrate multi targeted interrupts during cpu hotplug out if their masks include any onlie cpus. This patch was missing by kernel version up, because this code was in arch/arm64/kernel. But it is in kernel/irq now. Change-Id: If1acc4c5acac8ca65bc4a3308db40530bdd1e17c Signed-off-by: Hosung Kim Signed-off-by: Hyunki Koo --- kernel/irq/cpuhotplug.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/irq/cpuhotplug.c b/kernel/irq/cpuhotplug.c index 9eb09aef0313..094306aafb5a 100644 --- a/kernel/irq/cpuhotplug.c +++ b/kernel/irq/cpuhotplug.c @@ -120,6 +120,8 @@ static bool migrate_one_irq(struct irq_desc *desc) } affinity = cpu_online_mask; brokeaff = true; + } else if (unlikely(d->common->state_use_accessors & IRQD_GIC_MULTI_TARGET)) { + return false; } /* * Do not set the force argument of irq_do_set_affinity() as this -- 2.20.1