]> rtime.felk.cvut.cz Git - zynq/linux.git/commit
kernel/hotplug: restore original cpu mask oncpu/down
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Fri, 14 Jun 2013 15:16:35 +0000 (17:16 +0200)
committerMichal Sojka <sojka@merica.cz>
Sun, 13 Sep 2015 07:47:39 +0000 (09:47 +0200)
commit83a86d6aff1a1a400859416212e1bc83d33f16d5
tree7aa9f33c2327491e498b171823bdfe8beafb7bd7
parenta62336169f0edcf4bc48b3ddad62a9a37afd943a
kernel/hotplug: restore original cpu mask oncpu/down

If a task which is allowed to run only on CPU X puts CPU Y down then it
will be allowed on all CPUs but the on CPU Y after it comes back from
kernel. This patch ensures that we don't lose the initial setting unless
the CPU the task is running is going down.

Cc: stable-rt@vger.kernel.org
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
kernel/cpu.c