cpumask: use new operators in kernel/trace
authorRusty Russell <rusty@rustcorp.com.au>
Fri, 12 Jun 2009 11:45:30 +0000 (21:15 +0930)
committerSteven Rostedt <rostedt@goodmis.org>
Mon, 15 Jun 2009 15:36:42 +0000 (11:36 -0400)
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
LKML-Reference: <200906122115.30787.rusty@rustcorp.com.au>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/kmemtrace.c
kernel/trace/ring_buffer.c

index 86cdf671d7e288c0998a4b14e2b2f2f2c709fdb2..1edaa9516e8153b8210398143c37dab20bd28777 100644 (file)
@@ -186,7 +186,7 @@ static int kmem_trace_init(struct trace_array *tr)
        int cpu;
        kmemtrace_array = tr;
 
-       for_each_cpu_mask(cpu, cpu_possible_map)
+       for_each_cpu(cpu, cpu_possible_mask)
                tracing_reset(tr, cpu);
 
        kmemtrace_start_probes();
index 2e642b2b7253d11ddce40c657a471f007561be65..9c31c9f6b93fcc4a7a01c506c526f63ed6ed4844 100644 (file)
@@ -3105,7 +3105,7 @@ static int rb_cpu_notify(struct notifier_block *self,
        switch (action) {
        case CPU_UP_PREPARE:
        case CPU_UP_PREPARE_FROZEN:
-               if (cpu_isset(cpu, *buffer->cpumask))
+               if (cpumask_test_cpu(cpu, buffer->cpumask))
                        return NOTIFY_OK;
 
                buffer->buffers[cpu] =
@@ -3116,7 +3116,7 @@ static int rb_cpu_notify(struct notifier_block *self,
                        return NOTIFY_OK;
                }
                smp_wmb();
-               cpu_set(cpu, *buffer->cpumask);
+               cpumask_set_cpu(cpu, buffer->cpumask);
                break;
        case CPU_DOWN_PREPARE:
        case CPU_DOWN_PREPARE_FROZEN: