From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753064AbcAPVTS (ORCPT ); Sat, 16 Jan 2016 16:19:18 -0500 Received: from terminus.zytor.com ([198.137.202.10]:56611 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752895AbcAPVTQ (ORCPT ); Sat, 16 Jan 2016 16:19:16 -0500 Date: Sat, 16 Jan 2016 13:18:12 -0800 From: tip-bot for Thomas Gleixner Message-ID: Cc: linux@roeck-us.net, tglx@linutronix.de, jiang.liu@linux.intel.com, linux-kernel@vger.kernel.org, joe.lawrence@stratus.com, bp@alien8.de, mingo@kernel.org, jmmahler@gmail.com, hpa@zytor.com Reply-To: jmmahler@gmail.com, hpa@zytor.com, joe.lawrence@stratus.com, bp@alien8.de, mingo@kernel.org, linux-kernel@vger.kernel.org, jiang.liu@linux.intel.com, linux@roeck-us.net, tglx@linutronix.de In-Reply-To: <20151231160106.640253454@linutronix.de> References: <20151231160106.640253454@linutronix.de> To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/urgent] x86/irq: Copy vectormask instead of an AND operation Git-Commit-ID: 9ac15b7a8af4cf3337a101498c0ed690d23ade75 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: 9ac15b7a8af4cf3337a101498c0ed690d23ade75 Gitweb: http://git.kernel.org/tip/9ac15b7a8af4cf3337a101498c0ed690d23ade75 Author: Thomas Gleixner AuthorDate: Thu, 31 Dec 2015 16:30:49 +0000 Committer: Thomas Gleixner CommitDate: Fri, 15 Jan 2016 13:44:00 +0100 x86/irq: Copy vectormask instead of an AND operation In the case that the new vector mask is a subset of the existing mask there is no point to do a AND operation of currentmask & newmask. The result is newmask. So we can simply copy the new mask to the current mask and be done with it. Preparatory patch for further consolidation. 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.640253454@linutronix.de Signed-off-by: Thomas Gleixner --- arch/x86/kernel/apic/vector.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kernel/apic/vector.c b/arch/x86/kernel/apic/vector.c index 940e18d..1bd29c6 100644 --- a/arch/x86/kernel/apic/vector.c +++ b/arch/x86/kernel/apic/vector.c @@ -156,7 +156,7 @@ static int __assign_irq_vector(int irq, struct apic_chip_data *d, vector_cpumask); d->move_in_progress = cpumask_intersects(d->old_domain, cpu_online_mask); - cpumask_and(d->domain, d->domain, vector_cpumask); + cpumask_copy(d->domain, vector_cpumask); goto success; }