Re: [RFC PATCH v5 4/4] arm: fix a migrating irq bug when hotplug cpu

2015-09-22 Thread Marc Zyngier
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

Re: [RFC PATCH v5 4/4] arm: fix a migrating irq bug when hotplug cpu

2015-09-22 Thread Marc Zyngier
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

[RFC PATCH v5 4/4] arm: fix a migrating irq bug when hotplug cpu

2015-09-18 Thread Yang Yingliang
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.

[RFC PATCH v5 4/4] arm: fix a migrating irq bug when hotplug cpu

2015-09-18 Thread Yang Yingliang
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.