]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[S390] Force PSW restart on online CPU
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 13 Sep 2011 07:49:36 +0000 (09:49 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 13 Sep 2011 07:49:35 +0000 (09:49 +0200)
commit3b80bde9f5dcf1939b458a2fb697fc5a8f195bc1
tree3c231aba3ca1ad05f1e29b98472c00391901e3d4
parent66d99dc98e2ebd60f40c5e4336a5f6d75e8227fc
[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