From: Michal Simek Date: Thu, 10 Jun 2010 14:02:32 +0000 (+0200) Subject: microblaze: Do not trace cpu_relax function X-Git-Tag: v2.6.36-rc1~560^2~36 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=d0f140e03e38dc553a0bb61611c15fcede671f23;p=karo-tx-linux.git microblaze: Do not trace cpu_relax function IRQsoff tracer requires to protect cpu_idle function to get correct timing report. Signed-off-by: Michal Simek --- diff --git a/arch/microblaze/kernel/process.c b/arch/microblaze/kernel/process.c index 09bed44dfcd3..ba7c4b16ed35 100644 --- a/arch/microblaze/kernel/process.c +++ b/arch/microblaze/kernel/process.c @@ -76,8 +76,11 @@ __setup("hlt", hlt_setup); void default_idle(void) { if (likely(hlt_counter)) { - while (!need_resched()) - cpu_relax(); + local_irq_disable(); + stop_critical_timings(); + cpu_relax(); + start_critical_timings(); + local_irq_enable(); } else { clear_thread_flag(TIF_POLLING_NRFLAG); smp_mb__after_clear_bit();