public inbox for linux-rt-users@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] pin_current_cpu: move preempt_enable() outside
@ 2013-11-07  3:07 Tiejun Chen
  2013-11-07  3:53 ` Steven Rostedt
  0 siblings, 1 reply; 2+ messages in thread
From: Tiejun Chen @ 2013-11-07  3:07 UTC (permalink / raw)
  To: rostedt; +Cc: tglx, stable-rt, linux-rt-users

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


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

end of thread, other threads:[~2013-11-07  3:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-07  3:07 [PATCH] pin_current_cpu: move preempt_enable() outside Tiejun Chen
2013-11-07  3:53 ` Steven Rostedt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox