From 8f8f88a0309bd4f9b03974b14e09b4618d55ccba Mon Sep 17 00:00:00 2001
From: Mike Galbraith <umgwanakikbuti@gmail.com>
Date: Sat, 23 Jan 2016 08:11:53 +0100
Subject: [PATCH 277/398] sched: fix ->nr_cpus_allowed = 1 transcription error
 during migrate_disable() cleanup

Setting p->nr_cpus_allowed accidentally wandered into migrate_disable()
during the cleanup - kill it.

Signed-off-by: Mike Galbraith <umgwanakikbuti@gmail.com>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
---
 kernel/sched/core.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index df90f0de43f0..3bb38de3e2b2 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -3207,7 +3207,6 @@ void migrate_disable(void)
 	preempt_lazy_disable();
 	pin_current_cpu();
 	p->migrate_disable = 1;
-	p->nr_cpus_allowed = 1;
 	preempt_enable();
 }
 EXPORT_SYMBOL(migrate_disable);
-- 
2.14.4

