public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Kevin Hilman <khilman@mvista.com>
To: tglx@linutronix.de, mingo@elte.hu
Cc: linux-rt-users@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH -rt 6/6] Compile fix for PREEMPT_TIMING on and IRQSOFF_TIMING off
Date: Fri, 13 Jul 2007 10:52:20 -0700	[thread overview]
Message-ID: <20070713175229.239602308@mvista.com> (raw)
In-Reply-To: 20070713175214.336577416@mvista.com

[-- Attachment #1: trace-cpu-idle.patch --]
[-- Type: text/plain, Size: 865 bytes --]

The per-cpu trace_cpu_idle variable is used when timing *either*
IRQs-off or preempt sections.

---
 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)
+   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

--

  parent reply	other threads:[~2007-07-13 18:14 UTC|newest]

Thread overview: 11+ 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 ` Kevin Hilman [this message]
2007-07-13 21:11   ` [PATCH -rt 6/6] Compile fix for PREEMPT_TIMING on and IRQSOFF_TIMING off Sven-Thorsten Dietrich
2007-07-13 23:22   ` Kevin Hilman
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

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=20070713175229.239602308@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox