aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorMike Travis <travis@sgi.com>2008-05-12 15:21:13 -0400
committerThomas Gleixner <tglx@linutronix.de>2008-05-23 12:39:06 -0400
commit5d7bfd0c4d463d288422032c9903d0452dee141d (patch)
tree8ce2ce2fd8696a86e8a8dc0093fcd8c5d23dd0a9 /drivers
parent334ef7a7ab8f80b689a2be95d5e62d2167900865 (diff)
infiniband: use performance variant for_each_cpu_mask_nr
Change references from for_each_cpu_mask to for_each_cpu_mask_nr where appropriate Reviewed-by: Paul Jackson <pj@sgi.com> Reviewed-by: Christoph Lameter <clameter@sgi.com> Signed-off-by: Mike Travis <travis@sgi.com> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/infiniband/hw/ehca/ehca_irq.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/ehca/ehca_irq.c b/drivers/infiniband/hw/ehca/ehca_irq.c
index ce1ab0571be3..43180b952c1f 100644
--- a/drivers/infiniband/hw/ehca/ehca_irq.c
+++ b/drivers/infiniband/hw/ehca/ehca_irq.c
@@ -641,8 +641,8 @@ static inline int find_next_online_cpu(struct ehca_comp_pool *pool)
641 ehca_dmp(&cpu_online_map, sizeof(cpumask_t), ""); 641 ehca_dmp(&cpu_online_map, sizeof(cpumask_t), "");
642 642
643 spin_lock_irqsave(&pool->last_cpu_lock, flags); 643 spin_lock_irqsave(&pool->last_cpu_lock, flags);
644 cpu = next_cpu(pool->last_cpu, cpu_online_map); 644 cpu = next_cpu_nr(pool->last_cpu, cpu_online_map);
645 if (cpu == NR_CPUS) 645 if (cpu >= nr_cpu_ids)
646 cpu = first_cpu(cpu_online_map); 646 cpu = first_cpu(cpu_online_map);
647 pool->last_cpu = cpu; 647 pool->last_cpu = cpu;
648 spin_unlock_irqrestore(&pool->last_cpu_lock, flags); 648 spin_unlock_irqrestore(&pool->last_cpu_lock, flags);