* [PATCH 2/3] cpumask: use new cpumask API in drivers/infiniband/hw/ehca
@ 2008-11-21 13:50 Rusty Russell
2008-11-25 12:59 ` Hoang-Nam Nguyen
0 siblings, 1 reply; 2+ messages in thread
From: Rusty Russell @ 2008-11-21 13:50 UTC (permalink / raw)
To: Hoang-Nam Nguyen; +Cc: linux-kernel, Christoph Raisch, Christoph Raisch
Impact: cleanup
We're moving from handing around cpumask_t's to handing around struct
cpumask *'s. cpus_*, cpumask_t and cpu_*_map are deprecated: convert
to cpumask_*, cpu_*_mask.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Cc: Hoang-Nam Nguyen <hnguyen@de.ibm.com>
Cc: Christoph Raisch <raisch@de.ibm.com>
---
drivers/infiniband/hw/ehca/ehca_irq.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff -r 38b459d1e9c7 drivers/infiniband/hw/ehca/ehca_irq.c
--- a/drivers/infiniband/hw/ehca/ehca_irq.c Fri Nov 07 22:33:08 2008 +1100
+++ b/drivers/infiniband/hw/ehca/ehca_irq.c Fri Nov 07 22:48:13 2008 +1100
@@ -650,7 +650,7 @@ static inline int find_next_online_cpu(s
ehca_dmp(&cpu_online_map, sizeof(cpumask_t), "");
spin_lock_irqsave(&pool->last_cpu_lock, flags);
- cpu = next_cpu_nr(pool->last_cpu, cpu_online_map);
+ cpu = cpumask_next(pool->last_cpu, cpu_online_mask);
if (cpu >= nr_cpu_ids)
cpu = first_cpu(cpu_online_map);
pool->last_cpu = cpu;
@@ -659,12 +659,12 @@
WARN_ON_ONCE(!in_interrupt());
if (ehca_debug_level >= 3)
- ehca_dmp(&cpu_online_map, sizeof(cpumask_t), "");
+ ehca_dmp(cpu_online_mask, cpumask_size(), "");
spin_lock_irqsave(&pool->last_cpu_lock, flags);
cpu = cpumask_next(pool->last_cpu, cpu_online_mask);
if (cpu >= nr_cpu_ids)
- cpu = first_cpu(cpu_online_map);
+ cpu = cpumask_first(cpu_online_mask);
pool->last_cpu = cpu;
spin_unlock_irqrestore(&pool->last_cpu_lock, flags);
@@ -855,7 +855,7 @@
case CPU_UP_CANCELED_FROZEN:
ehca_gen_dbg("CPU: %x (CPU_CANCELED)", cpu);
cct = per_cpu_ptr(pool->cpu_comp_tasks, cpu);
- kthread_bind(cct->task, any_online_cpu(cpu_online_map));
+ kthread_bind(cct->task, cpumask_any(cpu_online_mask));
destroy_comp_task(pool, cpu);
break;
case CPU_ONLINE:
@@ -902,7 +902,7 @@
return -ENOMEM;
spin_lock_init(&pool->last_cpu_lock);
- pool->last_cpu = any_online_cpu(cpu_online_map);
+ pool->last_cpu = cpumask_any(cpu_online_mask);
pool->cpu_comp_tasks = alloc_percpu(struct ehca_cpu_comp_task);
if (pool->cpu_comp_tasks == NULL) {
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH 2/3] cpumask: use new cpumask API in drivers/infiniband/hw/ehca
2008-11-21 13:50 [PATCH 2/3] cpumask: use new cpumask API in drivers/infiniband/hw/ehca Rusty Russell
@ 2008-11-25 12:59 ` Hoang-Nam Nguyen
0 siblings, 0 replies; 2+ messages in thread
From: Hoang-Nam Nguyen @ 2008-11-25 12:59 UTC (permalink / raw)
To: Rusty Russell; +Cc: Christoph Raisch, linux-kernel
> Impact: cleanup
>
> We're moving from handing around cpumask_t's to handing around struct
> cpumask *'s. cpus_*, cpumask_t and cpu_*_map are deprecated: convert
> to cpumask_*, cpu_*_mask.
>
> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Acked-by: Hoang-Nam Nguyen <hnguyen@de.ibm.com>
Tested with latest kernel. Thanks for this!
Nam
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-11-25 13:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-21 13:50 [PATCH 2/3] cpumask: use new cpumask API in drivers/infiniband/hw/ehca Rusty Russell
2008-11-25 12:59 ` Hoang-Nam Nguyen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox