mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 03:15:31 +09: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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user