From: Tiejun Chen <tiejun.chen@windriver.com>
To: <rostedt@goodmis.org>
Cc: <tglx@linutronix.de>, <stable-rt@vger.kernel.org>,
<linux-rt-users@vger.kernel.org>
Subject: [PATCH] pin_current_cpu: move preempt_enable() outside
Date: Thu, 7 Nov 2013 11:07:30 +0800 [thread overview]
Message-ID: <1383793650-7839-1-git-send-email-tiejun.chen@windriver.com> (raw)
It should make better sense than before.
Signed-off-by: Tiejun Chen <tiejun.chen@windriver.com>
---
kernel/cpu.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/kernel/cpu.c b/kernel/cpu.c
index da6e128..7b1853f 100644
--- a/kernel/cpu.c
+++ b/kernel/cpu.c
@@ -124,12 +124,11 @@ retry:
return;
}
+ preempt_enable();
if (hp->grab_lock) {
- preempt_enable();
hotplug_lock(hp);
hotplug_unlock(hp);
} else {
- preempt_enable();
/*
* Try to push this task off of this CPU.
*/
--
1.7.9.5
next reply other threads:[~2013-11-07 3:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-07 3:07 Tiejun Chen [this message]
2013-11-07 3:53 ` [PATCH] pin_current_cpu: move preempt_enable() outside Steven Rostedt
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=1383793650-7839-1-git-send-email-tiejun.chen@windriver.com \
--to=tiejun.chen@windriver.com \
--cc=linux-rt-users@vger.kernel.org \
--cc=rostedt@goodmis.org \
--cc=stable-rt@vger.kernel.org \
--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