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 4/6] Add trace_preempt_*_idle() support for ARM.
Date: Fri, 13 Jul 2007 10:52:18 -0700	[thread overview]
Message-ID: <20070713175228.623525155@mvista.com> (raw)
In-Reply-To: 20070713175214.336577416@mvista.com

[-- Attachment #1: arm-trace-preempt-idle.patch --]
[-- Type: text/plain, Size: 872 bytes --]

Add trace functions to ARM idle loop and also move the
tick_nohz_restart_sched_tick() after the local_irq_disable() as is
done on x86.

Signed-off-by: Kevin Hilman <khilman@mvista.com>
---
 arch/arm/kernel/process.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

Index: linux-2.6/arch/arm/kernel/process.c
===================================================================
--- linux-2.6.orig/arch/arm/kernel/process.c
+++ linux-2.6/arch/arm/kernel/process.c
@@ -165,11 +165,13 @@ void cpu_idle(void)
 		while (!need_resched() && !need_resched_delayed())
 			idle();
 		leds_event(led_idle_end);
-		tick_nohz_restart_sched_tick();
 		local_irq_disable();
+		trace_preempt_exit_idle();
+		tick_nohz_restart_sched_tick();
 		__preempt_enable_no_resched();
 		__schedule();
 		preempt_disable();
+		trace_preempt_enter_idle();
 		local_irq_enable();
 	}
 }

--

  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 ` Kevin Hilman [this message]
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
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=20070713175228.623525155@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