[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>

authored by Heiko Carstens and committed by Linus Torvalds 1fca251f 6d751c43

+3 -1
+3 -1
arch/s390/kernel/process.c
··· 128 128 __ctl_set_bit(8, 15); 129 129 130 130 #ifdef CONFIG_HOTPLUG_CPU 131 - if (cpu_is_offline(cpu)) 131 + if (cpu_is_offline(cpu)) { 132 + preempt_enable_no_resched(); 132 133 cpu_die(); 134 + } 133 135 #endif 134 136 135 137 local_mcck_disable();