[S390] Fix parameter passing for smp_switch_to_cpu()
authorMichael Holzheu <holzheu@linux.vnet.ibm.com>
Mon, 4 Apr 2011 07:43:30 +0000 (09:43 +0200)
committerMartin Schwidefsky <sky@mschwide.boeblingen.de.ibm.com>
Mon, 4 Apr 2011 07:43:32 +0000 (09:43 +0200)
commit034e9e966cd86e5d8062cf0b3daba4bde187986c
tree9c6c166b27e1662b11254940d039121537dcbd25
parent65a94b1417badaee2ed923fd07e23b651b25c729
[S390] Fix parameter passing for smp_switch_to_cpu()

After the execution has been switched to the destination CPU, the target
function is called with the wrong parameter. According to the C calling
convention on s390, the first parameter should be loaded into register 2.
Currently in smp_restart_cpu() it is stored in register 3. To fix this, we
load the parameter into the correct register 2.

Signed-off-by: Michael Holzheu <holzheu@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/kernel/switch_cpu.S
arch/s390/kernel/switch_cpu64.S