From mboxrd@z Thu Jan 1 00:00:00 1970 From: marc.zyngier@arm.com (Marc Zyngier) Date: Tue, 22 Sep 2015 19:50:37 +0100 Subject: [RFC PATCH v5 4/4] arm: fix a migrating irq bug when hotplug cpu In-Reply-To: <1442631959-10228-5-git-send-email-yangyingliang@huawei.com> References: <1442631959-10228-1-git-send-email-yangyingliang@huawei.com> <1442631959-10228-5-git-send-email-yangyingliang@huawei.com> Message-ID: <20150922195037.472b404c@arm.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Sat, 19 Sep 2015 11:05:59 +0800 Yang Yingliang wrote: > When cpu is disabled, all irqs will be migratged to another cpu. > In some cases, a new affinity is different, it needed to be coppied > to irq's affinity. But if the type of irq is LPI, it's affinity will > not be coppied because of irq_set_affinity's return value. Fix it by > using irq_do_set_affinity. > > And migrating interrupts is a core code matter, so use the generic > function irq_migrate_all_off_this_cpu() to migrate interrupts in > kernel/irq/migration.c. > > Cc: Jiang Liu > Cc: Thomas Gleixner > Cc: Marc Zyngier > Cc: Mark Rutland > Cc: Will Deacon > Cc: Russell King - ARM Linux > Cc: Hanjun Guo > Signed-off-by: Yang Yingliang Acked-by: Marc Zyngier M. -- Jazz is not dead. It just smells funny.