svn commit: r354670 - head/sys/powerpc/powerpc
Justin Hibbits
jhibbits at FreeBSD.org
Wed Nov 13 02:16:24 UTC 2019
Author: jhibbits
Date: Wed Nov 13 02:16:24 2019
New Revision: 354670
URL: https://svnweb.freebsd.org/changeset/base/354670
Log:
powerpc: Don't savectx() twice in IPI_STOP handler
We already save context in stoppcbs[] array, so there's no need to also save it
in the PCB, it won't be used.
Modified:
head/sys/powerpc/powerpc/mp_machdep.c
Modified: head/sys/powerpc/powerpc/mp_machdep.c
==============================================================================
--- head/sys/powerpc/powerpc/mp_machdep.c Wed Nov 13 02:14:17 2019 (r354669)
+++ head/sys/powerpc/powerpc/mp_machdep.c Wed Nov 13 02:16:24 2019 (r354670)
@@ -331,7 +331,6 @@ powerpc_ipi_handler(void *arg)
__func__);
cpuid = PCPU_GET(cpuid);
savectx(&stoppcbs[cpuid]);
- savectx(PCPU_GET(curpcb));
CPU_SET_ATOMIC(cpuid, &stopped_cpus);
while (!CPU_ISSET(cpuid, &started_cpus))
cpu_spinwait();
More information about the svn-src-all
mailing list