x86: Return IRQ_SET_MASK_OK_NOCOPY from irq affinity functions
authorJiang Liu <liuj97@gmail.com>
Fri, 30 Mar 2012 15:11:35 +0000 (23:11 +0800)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 24 May 2012 21:16:33 +0000 (23:16 +0200)
commitf841d792e38f75f5e25b0b66f7b5d235d180a735
tree52657a4c6b9d2ff9ff6b2b4ed98a9e2dd2b2cecf
parent151766fce8bee0e3e6076c8b829f9fcc0a2412ae
x86: Return IRQ_SET_MASK_OK_NOCOPY from irq affinity functions

The interrupt chip irq_set_affinity() functions copy the affinity mask
to irq_data->affinity but return 0, i.e. IRQ_SET_MASK_OK.
IRQ_SET_MASK_OK causes the core code to do another redundant copy.

Return IRQ_SET_MASK_OK_NOCOPY to avoid this.

Signed-off-by: Jiang Liu <jiang.liu@huawei.com>
Cc: Suresh Siddha <suresh.b.siddha@intel.com>
Cc: Yinghai Lu <yinghai@kernel.org>
Cc: Naga Chumbalkar <nagananda.chumbalkar@hp.com>
Cc: Jacob Pan <jacob.jun.pan@linux.intel.com>
Cc: Cliff Wickman <cpw@sgi.com>
Cc: Jiang Liu <liuj97@gmail.com>
Cc: Keping Chen <chenkeping@huawei.com>
Link: http://lkml.kernel.org/r/1333120296-13563-4-git-send-email-jiang.liu@huawei.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/kernel/apic/io_apic.c
arch/x86/platform/uv/uv_irq.c