diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2015-08-02 20:38:24 +0000 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2015-08-06 00:14:58 +0200 |
commit | 24c70e07a0311a98dbb5e7a7472fa96a22b789d3 (patch) | |
tree | 990dcd031016b9b1c9b8e70862131fc0b7212b31 /arch/x86 | |
parent | df54c4934e030e73cb6a7bd6713f697350dabd0b (diff) | |
download | blackbird-op-linux-24c70e07a0311a98dbb5e7a7472fa96a22b789d3.tar.gz blackbird-op-linux-24c70e07a0311a98dbb5e7a7472fa96a22b789d3.zip |
x86/irq: Replace numeric constant
Use the proper define instead of 0.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Jiang Liu <jiang.liu@linux.intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Cc: Bjorn Helgaas <bhelgaas@google.com>
Link: http://lkml.kernel.org/r/20150802203609.385495420@linutronix.de
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/kernel/irq.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/irq.c b/arch/x86/kernel/irq.c index bc28496fd196..35d4cb287771 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++; } } |