summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorSteven Rostedt <rostedt@goodmis.org>2008-10-01 00:29:52 -0400
committerIngo Molnar <mingo@elte.hu>2008-10-14 10:39:04 +0200
commit70255b5e3f1bd1a5af5b1e425ec2c4db7c735112 (patch)
tree0c948691e0f247b9100eaf151cdafda182b34545 /kernel
parent9e9efffb7848fe53c334996819139b431b983ac2 (diff)
downloadop-kernel-dev-70255b5e3f1bd1a5af5b1e425ec2c4db7c735112.zip
op-kernel-dev-70255b5e3f1bd1a5af5b1e425ec2c4db7c735112.tar.gz
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: Steven Rostedt <srostedt@redhat.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/trace/ring_buffer.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/kernel/trace/ring_buffer.c b/kernel/trace/ring_buffer.c
index cfa7113..8e7392f 100644
--- a/kernel/trace/ring_buffer.c
+++ b/kernel/trace/ring_buffer.c
@@ -847,7 +847,7 @@ ring_buffer_lock_reserve(struct ring_buffer *buffer,
if (atomic_read(&buffer->record_disabled))
return NULL;
- raw_local_irq_save(*flags);
+ local_irq_save(*flags);
cpu = raw_smp_processor_id();
if (!cpu_isset(cpu, buffer->cpumask))
@@ -909,7 +909,7 @@ int ring_buffer_unlock_commit(struct ring_buffer *buffer,
rb_commit(cpu_buffer, event);
spin_unlock(&cpu_buffer->lock);
- raw_local_irq_restore(flags);
+ local_irq_restore(flags);
return 0;
}
@@ -1583,13 +1583,13 @@ void ring_buffer_reset_cpu(struct ring_buffer *buffer, int cpu)
if (!cpu_isset(cpu, buffer->cpumask))
return;
- raw_local_irq_save(flags);
+ local_irq_save(flags);
spin_lock(&cpu_buffer->lock);
rb_reset_cpu(cpu_buffer);
spin_unlock(&cpu_buffer->lock);
- raw_local_irq_restore(flags);
+ local_irq_restore(flags);
}
/**
OpenPOWER on IntegriCloud