]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] s390: fix preempt_count of idle thread with cpu hotplug
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Fri, 17 Feb 2006 21:52:46 +0000 (13:52 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 17 Feb 2006 21:59:26 +0000 (13:59 -0800)
commit2d71efaceaa4faf892cebc61c5759d0ddfbd09c1
tree0fd4e7816dc310a48e95901ae411e5442805e224
parent9130183ce620fb4779409d16023544e6e0730f5a
[PATCH] s390: fix preempt_count of idle thread with cpu hotplug

Set preempt_count of idle_thread to zero before switching off cpu.  Otherwise
the preempt_count will be wrong if the cpu is switched on again since the
thread will be reused.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/s390/kernel/process.c