Re: [RFC PATCH v6 2/3] arm64: fix a migrating irq bug when hotplug cpu

2015-10-09 Thread Catalin Marinas
On Thu, Sep 24, 2015 at 05:32:14PM +0800, Yang Yingliang wrote: > When cpu is disabled, all irqs will be migratged to another cpu. > In some cases, a new affinity is different, the old affinity need > to be updated and if irq_set_affinity's return value is IRQ_SET_MASK_OK_DONE, > the old affinity

Re: [RFC PATCH v6 2/3] arm64: fix a migrating irq bug when hotplug cpu

2015-10-09 Thread Catalin Marinas
On Thu, Sep 24, 2015 at 05:32:14PM +0800, Yang Yingliang wrote: > When cpu is disabled, all irqs will be migratged to another cpu. > In some cases, a new affinity is different, the old affinity need > to be updated and if irq_set_affinity's return value is IRQ_SET_MASK_OK_DONE, > the old affinity

[RFC PATCH v6 2/3] arm64: fix a migrating irq bug when hotplug cpu

2015-09-24 Thread Yang Yingliang
When cpu is disabled, all irqs will be migratged to another cpu. In some cases, a new affinity is different, the old affinity need to be updated and if irq_set_affinity's return value is IRQ_SET_MASK_OK_DONE, the old affinity can not be updated. Fix it by using irq_do_set_affinity. And migrating

[RFC PATCH v6 2/3] arm64: fix a migrating irq bug when hotplug cpu

2015-09-24 Thread Yang Yingliang
When cpu is disabled, all irqs will be migratged to another cpu. In some cases, a new affinity is different, the old affinity need to be updated and if irq_set_affinity's return value is IRQ_SET_MASK_OK_DONE, the old affinity can not be updated. Fix it by using irq_do_set_affinity. And migrating