Commit 70255b5e authored by Steven Rostedt's avatar Steven Rostedt Committed by Ingo Molnar

ring_buffer: remove raw from local_irq_save

The raw_local_irq_save causes issues with lockdep. We don't need it
so replace them with local_irq_save.
Signed-off-by: default avatarSteven Rostedt <srostedt@redhat.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 9e9efffb
...@@ -847,7 +847,7 @@ ring_buffer_lock_reserve(struct ring_buffer *buffer, ...@@ -847,7 +847,7 @@ ring_buffer_lock_reserve(struct ring_buffer *buffer,
if (atomic_read(&buffer->record_disabled)) if (atomic_read(&buffer->record_disabled))
return NULL; return NULL;
raw_local_irq_save(*flags); local_irq_save(*flags);
cpu = raw_smp_processor_id(); cpu = raw_smp_processor_id();
if (!cpu_isset(cpu, buffer->cpumask)) if (!cpu_isset(cpu, buffer->cpumask))
...@@ -909,7 +909,7 @@ int ring_buffer_unlock_commit(struct ring_buffer *buffer, ...@@ -909,7 +909,7 @@ int ring_buffer_unlock_commit(struct ring_buffer *buffer,
rb_commit(cpu_buffer, event); rb_commit(cpu_buffer, event);
spin_unlock(&cpu_buffer->lock); spin_unlock(&cpu_buffer->lock);
raw_local_irq_restore(flags); local_irq_restore(flags);
return 0; return 0;
} }
...@@ -1583,13 +1583,13 @@ void ring_buffer_reset_cpu(struct ring_buffer *buffer, int cpu) ...@@ -1583,13 +1583,13 @@ void ring_buffer_reset_cpu(struct ring_buffer *buffer, int cpu)
if (!cpu_isset(cpu, buffer->cpumask)) if (!cpu_isset(cpu, buffer->cpumask))
return; return;
raw_local_irq_save(flags); local_irq_save(flags);
spin_lock(&cpu_buffer->lock); spin_lock(&cpu_buffer->lock);
rb_reset_cpu(cpu_buffer); rb_reset_cpu(cpu_buffer);
spin_unlock(&cpu_buffer->lock); spin_unlock(&cpu_buffer->lock);
raw_local_irq_restore(flags); local_irq_restore(flags);
} }
/** /**
......
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