]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
microblaze: Do not trace cpu_relax function
authorMichal Simek <monstr@monstr.eu>
Thu, 10 Jun 2010 14:02:32 +0000 (16:02 +0200)
committerMichal Simek <monstr@monstr.eu>
Wed, 4 Aug 2010 08:22:36 +0000 (10:22 +0200)
IRQsoff tracer requires to protect cpu_idle function
to get correct timing report.

Signed-off-by: Michal Simek <monstr@monstr.eu>
arch/microblaze/kernel/process.c

index 09bed44dfcd35a5f2300405f9e208982e7208798..ba7c4b16ed35e863074e737b00a8149cb3c42439 100644 (file)
@@ -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();