mirror of
https://github.com/torvalds/linux.git
synced 2026-05-23 22:52:19 +02:00
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 <hca@linux.ibm.com>
This commit is contained in:
parent
e7ec1d2eac
commit
e688c6255b
|
|
@ -333,6 +333,7 @@ static void pcpu_delegate(struct pcpu *pcpu,
|
|||
}
|
||||
/* Stop target cpu (if func returns this stops the current cpu). */
|
||||
pcpu_sigp_retry(pcpu, SIGP_STOP, 0);
|
||||
pcpu_sigp_retry(pcpu, SIGP_CPU_RESET, 0);
|
||||
/* Restart func on the target cpu and stop the current cpu. */
|
||||
if (lc) {
|
||||
lc->restart_stack = stack;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user