From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753126AbcAPVT7 (ORCPT ); Sat, 16 Jan 2016 16:19:59 -0500 Received: from terminus.zytor.com ([198.137.202.10]:56635 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752996AbcAPVT5 (ORCPT ); Sat, 16 Jan 2016 16:19:57 -0500 Date: Sat, 16 Jan 2016 13:18:53 -0800 From: tip-bot for Thomas Gleixner Message-ID: Cc: linux-kernel@vger.kernel.org, linux@roeck-us.net, bp@alien8.de, jiang.liu@linux.intel.com, mingo@kernel.org, joe.lawrence@stratus.com, hpa@zytor.com, tglx@linutronix.de, jmmahler@gmail.com Reply-To: jmmahler@gmail.com, joe.lawrence@stratus.com, hpa@zytor.com, tglx@linutronix.de, mingo@kernel.org, linux-kernel@vger.kernel.org, linux@roeck-us.net, jiang.liu@linux.intel.com, bp@alien8.de In-Reply-To: <20151231160106.808642683@linutronix.de> References: <20151231160106.808642683@linutronix.de> To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/urgent] x86/irq: Remove offline cpus from vector cleanup Git-Commit-ID: 847667ef10356b824a11c853fc8a8b1b437b6a8d X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 847667ef10356b824a11c853fc8a8b1b437b6a8d Gitweb: http://git.kernel.org/tip/847667ef10356b824a11c853fc8a8b1b437b6a8d Author: Thomas Gleixner AuthorDate: Thu, 31 Dec 2015 16:30:50 +0000 Committer: Thomas Gleixner 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 Tested-by: Borislav Petkov Tested-by: Joe Lawrence Cc: Jiang Liu Cc: Jeremiah Mahler Cc: andy.shevchenko@gmail.com Cc: Guenter Roeck Cc: stable@vger.kernel.org #4.3+ Link: http://lkml.kernel.org/r/20151231160106.808642683@linutronix.de Signed-off-by: Thomas Gleixner --- 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: