linux-rt-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* A question about cpu_idle()
@ 2009-10-21  3:07 yi li
  2009-10-21  4:47 ` Gregory Haskins
  0 siblings, 1 reply; 7+ messages in thread
From: yi li @ 2009-10-21  3:07 UTC (permalink / raw)
  To: linux-rt-users

Hi RT users,

While reading patch-2.6.31.4-rt14, there is a patch for cpu_idle()
which I cannot understand.

Could anyone kindly enough to tell me what is patch used for?


diff --git a/arch/x86/kernel/process_64.c b/arch/x86/kernel/process_64.c
index ebefb54..c8d0ece 100644
--- a/arch/x86/kernel/process_64.c
+++ b/arch/x86/kernel/process_64.c
@@ -152,9 +152,11 @@ void cpu_idle(void)
                }

                tick_nohz_restart_sched_tick();
-               preempt_enable_no_resched();
-               schedule();
+               local_irq_disable();
+               __preempt_enable_no_resched();
+               __schedule();
                preempt_disable();
+               local_irq_enable();
        }
 }

Regards,
-Yi

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-10-24 10:03 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-21  3:07 A question about cpu_idle() yi li
2009-10-21  4:47 ` Gregory Haskins
2009-10-22  4:30   ` yi li
2009-10-22 12:34     ` Gregory Haskins
2009-10-22 16:24       ` yi li
2009-10-22 18:59         ` Gregory Haskins
2009-10-24 10:04           ` yi li

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).