cpumask: replace for_each_cpu_mask_nr with for_each_cpu in kernel/time/
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 31 Dec 2008 23:42:29 +0000 (10:12 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 31 Dec 2008 23:42:29 +0000 (10:12 +1030)
Impact: cleanup

Simple replacement, now the _nr is redundant.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Mike Travis <travis@sgi.com>
Cc: Ingo Molnar <mingo@redhat.com>
kernel/time/clocksource.c
kernel/time/tick-broadcast.c

index 32141b15d63e530a5a561a4cf54c2cf9e4c0612c..ca89e1593f0833840fbbcaf58ba5bb5b075362e2 100644 (file)
@@ -145,7 +145,8 @@ static void clocksource_watchdog(unsigned long data)
                 * Cycle through CPUs to check if the CPUs stay
                 * synchronized to each other.
                 */
-               int next_cpu = next_cpu_nr(raw_smp_processor_id(), cpu_online_map);
+               int next_cpu = cpumask_next(raw_smp_processor_id(),
+                                           cpu_online_mask);
 
                if (next_cpu >= nr_cpu_ids)
                        next_cpu = cpumask_first(cpu_online_mask);
index 356fac57a1825c0e2c6e00afaff06302edc12cc6..118a3b3b3f9a3de4ffa48a2d30a73f6d8a56d3ef 100644 (file)
@@ -512,7 +512,7 @@ static void tick_broadcast_init_next_event(struct cpumask *mask,
        struct tick_device *td;
        int cpu;
 
-       for_each_cpu_mask_nr(cpu, *mask) {
+       for_each_cpu(cpu, mask) {
                td = &per_cpu(tick_cpu_device, cpu);
                if (td->evtdev)
                        td->evtdev->next_event = expires;