]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[IA64] Normalize return value of chip->irq_set_affinity() method
authorJiang Liu <liuj97@gmail.com>
Fri, 30 Mar 2012 15:11:36 +0000 (23:11 +0800)
committerTony Luck <tony.luck@intel.com>
Fri, 30 Mar 2012 20:33:56 +0000 (13:33 -0700)
commit16f2634490a6acf433fd447cdd6489232a1ff5cb
tree5b90ed37b87e63546b9e27a8d710c24bb2e176fc
parentc16fa4f2ad19908a47c63d8fa436a1178438c7e7
[IA64] Normalize return value of chip->irq_set_affinity() method

On IA64 platforms, interrupt controller chip's irq_set_affinity() method
always copies affinity mask to irq_data->affinity field but still returns
0(IRQ_SET_MASK_OK). That return value causes the interrupt core logic
unnecessarily copies the mask to irq_data->affinity field again.
So return IRQ_SET_MASK_OK_NOCOPY instead of IRQ_SET_MASK_OK to get rid of
the duplicated copy operation.

Signed-off-by: Jiang Liu <jiang.liu@huawei.com>
Link: http://marc.info/?l=linux-ia64&m=133312092912438&w=2
Signed-off-by: Tony Luck <tony.luck@intel.com>
arch/ia64/kernel/iosapic.c
arch/ia64/kernel/msi_ia64.c
arch/ia64/sn/kernel/irq.c
arch/ia64/sn/kernel/msi_sn.c