]> git.karo-electronics.de Git - karo-tx-linux.git/commit
s390/smp: Avoid busy loop after halt and "begin" on z/VM
authorMichael Holzheu <holzheu@linux.vnet.ibm.com>
Tue, 15 Apr 2014 09:25:28 +0000 (11:25 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 17 Apr 2014 10:46:52 +0000 (12:46 +0200)
commitafff00bd48e976b5d15d4c4888807787cd769426
treed7dbc86e8c6b06e4e3287c1739531b37a0bee9b6
parent50863d5c2bee11d60bf3e21e7935e17fd89c7efb
s390/smp: Avoid busy loop after halt and "begin" on z/VM

Currently the smp_stop_cpu() function for SMP kernels enters a busy
loop when "begin" is entered on the z/VM console after Linux is halted.
To avoid this behavior, use the non-SMP variant of smp_stop_cpu()
which stops the CPU again after "begin" is entered. As a side
effect we now have consistent behavior for SMP and non-SMP Linux.

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/smp.c