aboutsummaryrefslogtreecommitdiff
path: root/sys/powerpc
diff options
context:
space:
mode:
authorJason A. Harmening <jah@FreeBSD.org>2017-02-01 03:32:49 +0000
committerJason A. Harmening <jah@FreeBSD.org>2017-02-01 03:32:49 +0000
commit65ed483615b41085f27656c5c68d0ddd1caaf84c (patch)
tree18425fbbcf65a54495ab589b033c5852b640d375 /sys/powerpc
parent91722a2f0f07767a866255cb45fec29af132a2c2 (diff)
downloadsrc-65ed483615b41085f27656c5c68d0ddd1caaf84c.tar.gz
src-65ed483615b41085f27656c5c68d0ddd1caaf84c.zip
Implement get_pcpu() for the remaining architectures and use it to
replace pcpu_find(curcpu) in MI code.
Notes
Notes: svn path=/head/; revision=313037
Diffstat (limited to 'sys/powerpc')
-rw-r--r--sys/powerpc/include/cpufunc.h2
-rw-r--r--sys/powerpc/include/pcpu.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/powerpc/include/cpufunc.h b/sys/powerpc/include/cpufunc.h
index 378274b67e36..c70a94d31b6c 100644
--- a/sys/powerpc/include/cpufunc.h
+++ b/sys/powerpc/include/cpufunc.h
@@ -201,7 +201,7 @@ intr_restore(register_t msr)
}
static __inline struct pcpu *
-powerpc_get_pcpup(void)
+get_pcpu(void)
{
struct pcpu *ret;
diff --git a/sys/powerpc/include/pcpu.h b/sys/powerpc/include/pcpu.h
index 79cdd3039fff..b6949cf7bdc5 100644
--- a/sys/powerpc/include/pcpu.h
+++ b/sys/powerpc/include/pcpu.h
@@ -142,7 +142,7 @@ struct pvo_entry;
#ifdef _KERNEL
-#define pcpup ((struct pcpu *) powerpc_get_pcpup())
+#define pcpup (get_pcpu())
static __inline __pure2 struct thread *
__curthread(void)