linux-rt-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: yi li <liyi.dev@gmail.com>
To: linux-rt-users@vger.kernel.org
Subject: A question about cpu_idle()
Date: Wed, 21 Oct 2009 11:07:38 +0800	[thread overview]
Message-ID: <a0e7fce50910202007l587d2cfcu91b455ff0486110b@mail.gmail.com> (raw)

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

             reply	other threads:[~2009-10-21  3:07 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-21  3:07 yi li [this message]
2009-10-21  4:47 ` A question about cpu_idle() 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

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=a0e7fce50910202007l587d2cfcu91b455ff0486110b@mail.gmail.com \
    --to=liyi.dev@gmail.com \
    --cc=linux-rt-users@vger.kernel.org \
    /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;
as well as URLs for NNTP newsgroup(s).