Skip to content

Commit e688c62

Browse files
committed
s390/smp: perform cpu reset before delegating work to target cpu
Clear CPU state (e.g. all TLB entries, prefetched instructions, etc.) of the target CPU, however without clearing register contents before starting any work on it. This puts the target CPU in a more defined state compared to the current Stop + Restart sigp orders. Signed-off-by: Heiko Carstens <[email protected]>
1 parent e7ec1d2 commit e688c62

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/s390/kernel/smp.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,7 @@ static void pcpu_delegate(struct pcpu *pcpu,
333333
}
334334
/* Stop target cpu (if func returns this stops the current cpu). */
335335
pcpu_sigp_retry(pcpu, SIGP_STOP, 0);
336+
pcpu_sigp_retry(pcpu, SIGP_CPU_RESET, 0);
336337
/* Restart func on the target cpu and stop the current cpu. */
337338
if (lc) {
338339
lc->restart_stack = stack;

0 commit comments

Comments
 (0)