s390/smp: do not use nodat_stack for secondary CPU start
authorAlexander Gordeev <agordeev@linux.ibm.com>
Tue, 24 Aug 2021 13:30:22 +0000 (15:30 +0200)
committerHeiko Carstens <hca@linux.ibm.com>
Thu, 26 Aug 2021 18:22:13 +0000 (20:22 +0200)
commitd6be5d0ad304e81d4719ee47c429493aab033e38
tree3b2f0c1755966b0351cd46a1868a8153a0e42102
parent915fea04f9320d0f4ab6ecbb6bf759eebcd2c41d
s390/smp: do not use nodat_stack for secondary CPU start

The secondary CPU start C routine uses nodat_stack as a
interim stack before finally switching to kernel_stack.
Such scheme is superfluous, since the assembler restart
interrupt handler (that secondary CPU starter is called
from) does not need to use any stack for switching into
DAT mode. Once DAT is on, any stack including virtually-
mapped one could be used.

Avoid the use of nodat_stack and smp_start_secondary()
helper. Instead, initiate kernel_stack directly from
the restart interrupt handler.

Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/kernel/smp.c