Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Nov 2019 02:16:24 +0000 (UTC)
From:      Justin Hibbits <jhibbits@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r354670 - head/sys/powerpc/powerpc
Message-ID:  <201911130216.xAD2GOcY076322@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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();



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201911130216.xAD2GOcY076322>