diff options
author | Jiang Liu <[email protected]> | 2012-03-30 23:11:35 +0800 |
---|---|---|
committer | Thomas Gleixner <[email protected]> | 2012-05-24 23:16:33 +0200 |
commit | f841d792e38f75f5e25b0b66f7b5d235d180a735 (patch) | |
tree | 52657a4c6b9d2ff9ff6b2b4ed98a9e2dd2b2cecf /arch/x86/platform/uv/uv_irq.c | |
parent | 151766fce8bee0e3e6076c8b829f9fcc0a2412ae (diff) |
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 <[email protected]>
Cc: Suresh Siddha <[email protected]>
Cc: Yinghai Lu <[email protected]>
Cc: Naga Chumbalkar <[email protected]>
Cc: Jacob Pan <[email protected]>
Cc: Cliff Wickman <[email protected]>
Cc: Jiang Liu <[email protected]>
Cc: Keping Chen <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Thomas Gleixner <[email protected]>
Diffstat (limited to 'arch/x86/platform/uv/uv_irq.c')
-rw-r--r-- | arch/x86/platform/uv/uv_irq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/platform/uv/uv_irq.c b/arch/x86/platform/uv/uv_irq.c index f25c2765a5c9..a22c41656b52 100644 --- a/arch/x86/platform/uv/uv_irq.c +++ b/arch/x86/platform/uv/uv_irq.c @@ -222,7 +222,7 @@ uv_set_irq_affinity(struct irq_data *data, const struct cpumask *mask, if (cfg->move_in_progress) send_cleanup_vector(cfg); - return 0; + return IRQ_SET_MASK_OK_NOCOPY; } /* |