diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2015-08-02 22:38:24 +0200 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2015-08-06 00:14:58 +0200 |
commit | 24c70e07a0311a98dbb5e7a7472fa96a22b789d3 (patch) | |
tree | 990dcd031016b9b1c9b8e70862131fc0b7212b31 /arch | |
parent | x86/irq: Protect smp_cleanup_move (diff) | |
download | linux-24c70e07a0311a98dbb5e7a7472fa96a22b789d3.tar.xz 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')
-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++; } } |