]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf2586712af7145477b14f7a59867ebd4755eadfb
tree3b2f0c1755966b0351cd46a1868a8153a0e42102
parent26ea42b4ff748eaed3e4900c00aae887ccf75035
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