History

cpumask: use new operators in kernel/trace

Rusty Russell committed 17 years ago

Commit 3f237a71 parent 45e3e192 files · +3 −3Browse files

Showing the changes to kernel/trace/ring_buffer.c (1 of 2 files). Show all

Unified · Split

kernel/trace/ring_buffer.c+2−2
@@ -3105,7 +3105,7 @@ static int rb_cpu_notify(struct notifier_block *self, · 3104 unmodified lines
31053105 switch (action) {
31063106 case CPU_UP_PREPARE:
31073107 case CPU_UP_PREPARE_FROZEN:
3108− if (cpu_isset(cpu, *buffer->cpumask))
3108+ if (cpumask_test_cpu(cpu, buffer->cpumask))
31093109 return NOTIFY_OK;
31103110
31113111 buffer->buffers[cpu] =
@@ -3116,7 +3116,7 @@ static int rb_cpu_notify(struct notifier_block *self, · 4 unmodified lines
31163116 return NOTIFY_OK;
31173117 }
31183118 smp_wmb();
3119− cpu_set(cpu, *buffer->cpumask);
3119+ cpumask_set_cpu(cpu, buffer->cpumask);
31203120 break;
31213121 case CPU_DOWN_PREPARE:
31223122 case CPU_DOWN_PREPARE_FROZEN: