diff options
author | Arnaldo Carvalho de Melo <acme@ghostprotocols.net> | 2010-02-25 11:49:14 -0300 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2010-02-27 09:09:06 +0100 |
commit | 927026ecce9f4bc8604bd47c6363d384fed0634f (patch) | |
tree | ece6c25559ba681c49b5bbefbab8ec27eaf1ef24 | |
parent | 361b0224584cd9621485898b5ad09901dcc50a19 (diff) | |
download | linux-rt-927026ecce9f4bc8604bd47c6363d384fed0634f.tar.gz |
tracing: Convert max_trace_lock to be a raw spinlock
Needs to be taken in atomic contexts.
Pointed-out-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Acked-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
-rw-r--r-- | kernel/trace/trace_irqsoff.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/trace/trace_irqsoff.c b/kernel/trace/trace_irqsoff.c index 4ab5d9aaee0d..4896b88abbfd 100644 --- a/kernel/trace/trace_irqsoff.c +++ b/kernel/trace/trace_irqsoff.c @@ -24,7 +24,7 @@ static int tracer_enabled __read_mostly; static DEFINE_PER_CPU(int, tracing_cpu); -static DEFINE_SPINLOCK(max_trace_lock); +static DEFINE_RAW_SPINLOCK(max_trace_lock); enum { TRACER_IRQS_OFF = (1 << 1), @@ -145,7 +145,7 @@ check_critical_timing(struct trace_array *tr, if (!report_latency(delta)) goto out; - spin_lock_irqsave(&max_trace_lock, flags); + raw_spin_lock_irqsave(&max_trace_lock, flags); /* check if we are still the max latency */ if (!report_latency(delta)) @@ -168,7 +168,7 @@ check_critical_timing(struct trace_array *tr, max_sequence++; out_unlock: - spin_unlock_irqrestore(&max_trace_lock, flags); + raw_spin_unlock_irqrestore(&max_trace_lock, flags); out: data->critical_sequence = max_sequence; |