[PATCH] pin_current_cpu: move preempt_enable() outside

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



It should make better sense than before.

Signed-off-by: Tiejun Chen <tiejun.chen@xxxxxxxxxxxxx>
---
 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

--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [RT Stable]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux