]> 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)
commit1ce490ae3eedd113179376e7402c89ae82c79e6c
tree3b2f0c1755966b0351cd46a1868a8153a0e42102
parentdbe86eb6aefa3f36d5600bf3c25230b4d4386ddc
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