From: Kevin Hilman <khilman@mvista.com>
To: Kevin Hilman <khilman@mvista.com>
Cc: tglx@linutronix.de, mingo@elte.hu,
linux-rt-users@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH -rt 6/6] Compile fix for PREEMPT_TIMING on and IRQSOFF_TIMING off
Date: Fri, 13 Jul 2007 16:22:29 -0700 [thread overview]
Message-ID: <46980935.3060509@mvista.com> (raw)
In-Reply-To: <20070713175229.239602308@mvista.com>
[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@mvista.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
next prev parent reply other threads:[~2007-07-13 23:22 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-13 17:52 [PATCH -rt 0/6] misc. ARM fixup and compile fixes Kevin Hilman
2007-07-13 17:52 ` [PATCH -rt 1/6] Re-add GENERIC_TIME to OMAP Kevin Hilman
2007-07-13 17:52 ` [PATCH -rt 2/6] Fix typo in new IRQF_TIMER name Kevin Hilman
2007-07-13 17:52 ` [PATCH -rt 3/6] Compile fix for PREEMPT_TIMING on and TRACE_IRQFLAGS off Kevin Hilman
2007-07-13 17:52 ` [PATCH -rt 4/6] Add trace_preempt_*_idle() support for ARM Kevin Hilman
2007-07-13 17:52 ` [PATCH -rt 5/6] ARM: Fix save_stack_trace() prototype Kevin Hilman
2007-07-13 17:52 ` [PATCH -rt 6/6] Compile fix for PREEMPT_TIMING on and IRQSOFF_TIMING off Kevin Hilman
2007-07-13 21:11 ` Sven-Thorsten Dietrich
2007-07-13 23:22 ` Kevin Hilman [this message]
2007-07-14 2:08 ` Sven-Thorsten Dietrich
2007-07-15 16:31 ` [PATCH -rt 0/6] misc. ARM fixup and compile fixes Thomas Gleixner
2007-07-16 21:24 ` Kevin Hilman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=46980935.3060509@mvista.com \
--to=khilman@mvista.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rt-users@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=tglx@linutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.