mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-17 10:26:15 +00:00
GC obsolete cruft from this file.
This commit is contained in:
parent
fdca1cb1ef
commit
5560ed7825
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=83645
@ -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_ */
|
||||
|
Loading…
Reference in New Issue
Block a user