Allow the MD backend to provide an alternative to

#define curthread PCPU_GET(curthread)
since its so heavily used in the kernel and ripe for compile-speed
optimization on some platforms.
This commit is contained in:
Peter Wemm 2003-11-20 22:50:26 +00:00
parent 3500189b0e
commit de8e370ec1

View File

@ -83,7 +83,9 @@ extern struct cpuhead cpuhead;
#define curkse (curthread->td_kse)
#define curksegrp (curthread->td_ksegrp)
#define curproc (curthread->td_proc)
#ifndef curthread
#define curthread PCPU_GET(curthread)
#endif
/*
* MI PCPU support functions