[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <46980935.3060509@mvista.com>
Date: Fri, 13 Jul 2007 16:22:29 -0700
From: Kevin Hilman <khilman@...sta.com>
To: Kevin Hilman <khilman@...sta.com>
Cc: tglx@...utronix.de, mingo@...e.hu, linux-rt-users@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH -rt 6/6] Compile fix for PREEMPT_TIMING on and IRQSOFF_TIMING
off
[Minor update to avoid a compiler warning in the case of DEBUG_KERNEL=n]
Compile fix for PREEMPT_TIMING on and IRQSOFF_TIMING off
The per-cpu trace_cpu_idle variable is used when timing *either*
IRQs-off or preempt sections.
Signed-off-by: Kevin Hilman <khilman@...sta.com>
---
kernel/latency_trace.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
Index: linux-2.6/kernel/latency_trace.c
===================================================================
--- linux-2.6.orig/kernel/latency_trace.c
+++ linux-2.6/kernel/latency_trace.c
@@ -85,9 +85,13 @@ static inline int DEBUG_WARN_ON(int cond
}
#endif
+#if defined(CONFIG_CRITICAL_IRQSOFF_TIMING) || \
+ (defined(CONFIG_CRITICAL_PREEMPT_TIMING) &&
defined(CONFIG_TRACE_IRQFLAGS))
+ static DEFINE_PER_CPU(int, trace_cpu_idle);
+#endif
+
#ifdef CONFIG_CRITICAL_IRQSOFF_TIMING
# ifdef CONFIG_CRITICAL_PREEMPT_TIMING
- static DEFINE_PER_CPU(int, trace_cpu_idle);
# define irqs_off_preempt_count() (preempt_count() &&
!__get_cpu_var(trace_cpu_idle))
# else
# define irqs_off_preempt_count() 0
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists