summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2001-09-18 21:53:25 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2001-09-18 21:53:25 +0000
commit5560ed782586bf77ede65d2d221eae0dbcd8fc20 (patch)
tree833e4ece7660d4fbc85518ccb092522fd140bb83
parentfdca1cb1effd78819605dd6693b627228b30ca0f (diff)
Notes
-rw-r--r--sys/powerpc/include/globals.h14
1 files changed, 0 insertions, 14 deletions
diff --git a/sys/powerpc/include/globals.h b/sys/powerpc/include/globals.h
index b2fe865f4424..927020f1b63d 100644
--- a/sys/powerpc/include/globals.h
+++ b/sys/powerpc/include/globals.h
@@ -39,26 +39,12 @@
#define PCPU_PTR(member) (&GLOBALP->gd_ ## member)
#define PCPU_SET(member,value) (GLOBALP->gd_ ## member = (value))
-/*
- * The following set of macros works for UP kernel as well, but for maximum
- * performance we allow the global variables to be accessed directly. On the
- * other hand, kernel modules should always use these macros to maintain
- * portability between UP and SMP kernels.
- */
#define curthread PCPU_GET(curthread)
#define CURPROC (curthread->td_proc)
#define curproc (curthread->td_proc)
#define curksegrp (curthread->td_ksegrp)
#define curkse (curthread->td_kse)
-#define idleproc PCPU_GET(idleproc)
-#define curpcb PCPU_GET(curpcb)
-#define fpcurproc PCPU_GET(fpcurproc)
-#define fpcurthread PCPU_GET(fpcurthread)
-#define switchtime PCPU_GET(switchtime)
-#define switchticks PCPU_GET(switchticks)
-#define witness_spin_check PCPU_GET(witness_spin_check)
-
#endif /* _KERNEL */
#endif /* !_MACHINE_GLOBALS_H_ */