Commit 3f237a79 authored by Rusty Russell's avatar Rusty Russell Committed by Steven Rostedt

cpumask: use new operators in kernel/trace

Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
LKML-Reference: <200906122115.30787.rusty@rustcorp.com.au>
Signed-off-by: default avatarSteven Rostedt <rostedt@goodmis.org>
parent 45e3e193
...@@ -186,7 +186,7 @@ static int kmem_trace_init(struct trace_array *tr) ...@@ -186,7 +186,7 @@ static int kmem_trace_init(struct trace_array *tr)
int cpu; int cpu;
kmemtrace_array = tr; kmemtrace_array = tr;
for_each_cpu_mask(cpu, cpu_possible_map) for_each_cpu(cpu, cpu_possible_mask)
tracing_reset(tr, cpu); tracing_reset(tr, cpu);
kmemtrace_start_probes(); kmemtrace_start_probes();
......
...@@ -3105,7 +3105,7 @@ static int rb_cpu_notify(struct notifier_block *self, ...@@ -3105,7 +3105,7 @@ static int rb_cpu_notify(struct notifier_block *self,
switch (action) { switch (action) {
case CPU_UP_PREPARE: case CPU_UP_PREPARE:
case CPU_UP_PREPARE_FROZEN: case CPU_UP_PREPARE_FROZEN:
if (cpu_isset(cpu, *buffer->cpumask)) if (cpumask_test_cpu(cpu, buffer->cpumask))
return NOTIFY_OK; return NOTIFY_OK;
buffer->buffers[cpu] = buffer->buffers[cpu] =
...@@ -3116,7 +3116,7 @@ static int rb_cpu_notify(struct notifier_block *self, ...@@ -3116,7 +3116,7 @@ static int rb_cpu_notify(struct notifier_block *self,
return NOTIFY_OK; return NOTIFY_OK;
} }
smp_wmb(); smp_wmb();
cpu_set(cpu, *buffer->cpumask); cpumask_set_cpu(cpu, buffer->cpumask);
break; break;
case CPU_DOWN_PREPARE: case CPU_DOWN_PREPARE:
case CPU_DOWN_PREPARE_FROZEN: case CPU_DOWN_PREPARE_FROZEN:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment