[COMMON] kernel: irq: don't migrate irqs with IRQD_GIC_MULTI_TARGET set
authorHyunki Koo <hyunki00.koo@samsung.com>
Thu, 8 Mar 2018 09:07:29 +0000 (18:07 +0900)
committerJaehyoung Choi <jkkkkk.choi@samsung.com>
Mon, 14 May 2018 05:04:19 +0000 (14:04 +0900)
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 <hosung0.kim@samsung.com>
Signed-off-by: Hyunki Koo <hyunki00.koo@samsung.com>
kernel/irq/cpuhotplug.c

index 9eb09aef0313cecaea99844c653016469cc9321f..094306aafb5a017512105de0b7bcca507c6b38aa 100644 (file)
@@ -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