]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[S390] Force PSW restart on online CPU
authorMichael Holzheu <holzheu@linux.vnet.ibm.com>
Mon, 26 Sep 2011 14:42:45 +0000 (16:42 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 26 Sep 2011 14:42:46 +0000 (16:42 +0200)
commitc8db4641ee5b991cae75167da7047b52fe59096a
tree5564458e6551abf30e41cebf5e7e67b9bf51ffb8
parenta63bd96528874c83b2d45779bcd1807e8eaf3966
[S390] Force PSW restart on online CPU

PSW restart can be triggered on offline CPUs. If this happens, currently
the PSW restart code fails, because functions like smp_processor_id()
do not work on offline CPUs. This patch fixes this as follows:

If PSW restart is triggered on an offline CPU, the PSW restart (sigp restart)
is done a second time on another CPU that is online and the old CPU is
stopped afterwards.

Signed-off-by: Michael Holzheu <holzheu@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/smp.h
arch/s390/kernel/ipl.c
arch/s390/kernel/smp.c