aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2015-12-31 11:30:50 -0500
committerThomas Gleixner <tglx@linutronix.de>2016-01-15 07:44:01 -0500
commit847667ef10356b824a11c853fc8a8b1b437b6a8d (patch)
tree4a82369c56abf3231bcbb50a14e0589f9c912b6e
parentab25ac02148b600e645f77cfb8b8ea415ed75bb4 (diff)
x86/irq: Remove offline cpus from vector cleanup
No point of keeping offline cpus in the cleanup mask. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Tested-by: Borislav Petkov <bp@alien8.de> Tested-by: Joe Lawrence <joe.lawrence@stratus.com> Cc: Jiang Liu <jiang.liu@linux.intel.com> Cc: Jeremiah Mahler <jmmahler@gmail.com> Cc: andy.shevchenko@gmail.com Cc: Guenter Roeck <linux@roeck-us.net> Cc: stable@vger.kernel.org #4.3+ Link: http://lkml.kernel.org/r/20151231160106.808642683@linutronix.de Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
-rw-r--r--arch/x86/kernel/apic/vector.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/arch/x86/kernel/apic/vector.c b/arch/x86/kernel/apic/vector.c
index fccfa3f5545c..68d18b338e3a 100644
--- a/arch/x86/kernel/apic/vector.c
+++ b/arch/x86/kernel/apic/vector.c
@@ -202,8 +202,12 @@ next_cpu:
202 return -ENOSPC; 202 return -ENOSPC;
203 203
204update: 204update:
205 /* Cleanup required ? */ 205 /*
206 d->move_in_progress = cpumask_intersects(d->old_domain, cpu_online_mask); 206 * Exclude offline cpus from the cleanup mask and set the
207 * move_in_progress flag when the result is not empty.
208 */
209 cpumask_and(d->old_domain, d->old_domain, cpu_online_mask);
210 d->move_in_progress = !cpumask_empty(d->old_domain);
207 d->cfg.vector = vector; 211 d->cfg.vector = vector;
208 cpumask_copy(d->domain, vector_cpumask); 212 cpumask_copy(d->domain, vector_cpumask);
209success: 213success: