diff options
Diffstat (limited to 'arch/sparc/kernel/irq_64.c')
-rw-r--r-- | arch/sparc/kernel/irq_64.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/sparc/kernel/irq_64.c b/arch/sparc/kernel/irq_64.c index 1c378d8e90c5..640631b170ab 100644 --- a/arch/sparc/kernel/irq_64.c +++ b/arch/sparc/kernel/irq_64.c | |||
@@ -265,12 +265,12 @@ static int irq_choose_cpu(unsigned int virt_irq) | |||
265 | spin_lock_irqsave(&irq_rover_lock, flags); | 265 | spin_lock_irqsave(&irq_rover_lock, flags); |
266 | 266 | ||
267 | while (!cpu_online(irq_rover)) { | 267 | while (!cpu_online(irq_rover)) { |
268 | if (++irq_rover >= NR_CPUS) | 268 | if (++irq_rover >= nr_cpu_ids) |
269 | irq_rover = 0; | 269 | irq_rover = 0; |
270 | } | 270 | } |
271 | cpuid = irq_rover; | 271 | cpuid = irq_rover; |
272 | do { | 272 | do { |
273 | if (++irq_rover >= NR_CPUS) | 273 | if (++irq_rover >= nr_cpu_ids) |
274 | irq_rover = 0; | 274 | irq_rover = 0; |
275 | } while (!cpu_online(irq_rover)); | 275 | } while (!cpu_online(irq_rover)); |
276 | 276 | ||