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.
This commit is contained in:
Justin Hibbits 2019-11-13 02:16:24 +00:00
parent d0fa84f474
commit 56ee6bb943

View File

@ -331,7 +331,6 @@ powerpc_ipi_handler(void *arg)
__func__); __func__);
cpuid = PCPU_GET(cpuid); cpuid = PCPU_GET(cpuid);
savectx(&stoppcbs[cpuid]); savectx(&stoppcbs[cpuid]);
savectx(PCPU_GET(curpcb));
CPU_SET_ATOMIC(cpuid, &stopped_cpus); CPU_SET_ATOMIC(cpuid, &stopped_cpus);
while (!CPU_ISSET(cpuid, &started_cpus)) while (!CPU_ISSET(cpuid, &started_cpus))
cpu_spinwait(); cpu_spinwait();