From 56ee6bb9439b3231861e486dff2764e58ebd5e77 Mon Sep 17 00:00:00 2001 From: Justin Hibbits Date: Wed, 13 Nov 2019 02:16:24 +0000 Subject: [PATCH] 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. --- sys/powerpc/powerpc/mp_machdep.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sys/powerpc/powerpc/mp_machdep.c b/sys/powerpc/powerpc/mp_machdep.c index cff771d7af1..6c2d1b60b60 100644 --- a/sys/powerpc/powerpc/mp_machdep.c +++ b/sys/powerpc/powerpc/mp_machdep.c @@ -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();