From: Hyunki Koo Date: Thu, 8 Mar 2018 09:07:29 +0000 (+0900) Subject: [COMMON] kernel: irq: don't migrate irqs with IRQD_GIC_MULTI_TARGET set X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8e9cbdf9fc1d8fa3f56083b9c67b56393aafff3c;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [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 --- 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