]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[S390] Force PSW restart on online CPU
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 30 Aug 2011 08:01:14 +0000 (10:01 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 30 Aug 2011 08:01:13 +0000 (10:01 +0200)
commita19490653abcdcf679ede98749823c74d850f99a
tree4477fa6626eb5da7372bc885ef1146af7090d9da
parentff6de8d63ab1fe80d30630c2f4455fc5ce0c71f5
[S390] Force PSW restart on online CPU

Reference ID: RAS1101
From: Michael Holzheu <holzheu@linux.vnet.ibm.com>

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