Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1311039 > unrolled thread
| Started by | tip-bot for Thomas Gleixner <tipbot@zytor.com> |
|---|---|
| First post | 2016-01-16 22:30 +0100 |
| Last post | 2016-01-16 22:30 +0100 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[tip:x86/urgent] x86/irq: Remove offline cpus from vector cleanup tip-bot for Thomas Gleixner <tipbot@zytor.com> - 2016-01-16 22:30 +0100
| From | tip-bot for Thomas Gleixner <tipbot@zytor.com> |
|---|---|
| Date | 2016-01-16 22:30 +0100 |
| Subject | [tip:x86/urgent] x86/irq: Remove offline cpus from vector cleanup |
| Message-ID | <qRGA1-1x6-5@gated-at.bofh.it> |
Commit-ID: 847667ef10356b824a11c853fc8a8b1b437b6a8d Gitweb: http://git.kernel.org/tip/847667ef10356b824a11c853fc8a8b1b437b6a8d Author: Thomas Gleixner <tglx@linutronix.de> AuthorDate: Thu, 31 Dec 2015 16:30:50 +0000 Committer: Thomas Gleixner <tglx@linutronix.de> CommitDate: Fri, 15 Jan 2016 13:44:01 +0100 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> --- arch/x86/kernel/apic/vector.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/arch/x86/kernel/apic/vector.c b/arch/x86/kernel/apic/vector.c index fccfa3f..68d18b3 100644 --- a/arch/x86/kernel/apic/vector.c +++ b/arch/x86/kernel/apic/vector.c @@ -202,8 +202,12 @@ next_cpu: return -ENOSPC; update: - /* Cleanup required ? */ - d->move_in_progress = cpumask_intersects(d->old_domain, cpu_online_mask); + /* + * Exclude offline cpus from the cleanup mask and set the + * move_in_progress flag when the result is not empty. + */ + cpumask_and(d->old_domain, d->old_domain, cpu_online_mask); + d->move_in_progress = !cpumask_empty(d->old_domain); d->cfg.vector = vector; cpumask_copy(d->domain, vector_cpumask); success:
Back to top | Article view | linux.kernel
csiph-web