From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755903AbbHEWU2 (ORCPT ); Wed, 5 Aug 2015 18:20:28 -0400 Received: from terminus.zytor.com ([198.137.202.10]:51984 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755883AbbHEWUX (ORCPT ); Wed, 5 Aug 2015 18:20:23 -0400 Date: Wed, 5 Aug 2015 15:19:49 -0700 From: tip-bot for Thomas Gleixner Message-ID: Cc: rusty@rustcorp.com.au, tglx@linutronix.de, hpa@zytor.com, jiang.liu@linux.intel.com, bhelgaas@google.com, mingo@kernel.org, linux-kernel@vger.kernel.org, peterz@infradead.org Reply-To: mingo@kernel.org, linux-kernel@vger.kernel.org, bhelgaas@google.com, peterz@infradead.org, tglx@linutronix.de, hpa@zytor.com, rusty@rustcorp.com.au, jiang.liu@linux.intel.com In-Reply-To: <20150802203609.385495420@linutronix.de> References: <20150802203609.385495420@linutronix.de> To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/apic] x86/irq: Replace numeric constant Git-Commit-ID: 24c70e07a0311a98dbb5e7a7472fa96a22b789d3 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: 24c70e07a0311a98dbb5e7a7472fa96a22b789d3 Gitweb: http://git.kernel.org/tip/24c70e07a0311a98dbb5e7a7472fa96a22b789d3 Author: Thomas Gleixner AuthorDate: Sun, 2 Aug 2015 20:38:24 +0000 Committer: Thomas Gleixner CommitDate: Thu, 6 Aug 2015 00:14:58 +0200 x86/irq: Replace numeric constant Use the proper define instead of 0. Signed-off-by: Thomas Gleixner Cc: Jiang Liu Cc: Peter Zijlstra Cc: Rusty Russell Cc: Bjorn Helgaas Link: http://lkml.kernel.org/r/20150802203609.385495420@linutronix.de Signed-off-by: Thomas Gleixner --- arch/x86/kernel/irq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/kernel/irq.c b/arch/x86/kernel/irq.c index bc28496..35d4cb2 100644 --- a/arch/x86/kernel/irq.c +++ b/arch/x86/kernel/irq.c @@ -401,8 +401,8 @@ int check_irq_vectors_for_cpu_disable(void) for (vector = FIRST_EXTERNAL_VECTOR; vector < first_system_vector; vector++) { if (!test_bit(vector, used_vectors) && - per_cpu(vector_irq, cpu)[vector] < 0) - count++; + per_cpu(vector_irq, cpu)[vector] <= VECTOR_UNDEFINED) + count++; } }