Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/sched.h
Show First 20 Lines • Show All 167 Lines • ▼ Show 20 Lines | |||||
#ifdef KTR | #ifdef KTR | ||||
void sched_clear_tdname(struct thread *td); | void sched_clear_tdname(struct thread *td); | ||||
#endif | #endif | ||||
static __inline void | static __inline void | ||||
sched_pin(void) | sched_pin(void) | ||||
{ | { | ||||
curthread->td_pinned++; | curthread->td_pinned++; | ||||
__compiler_membar(); | atomic_interrupt_fence(); | ||||
} | } | ||||
static __inline void | static __inline void | ||||
sched_unpin(void) | sched_unpin(void) | ||||
{ | { | ||||
__compiler_membar(); | atomic_interrupt_fence(); | ||||
curthread->td_pinned--; | curthread->td_pinned--; | ||||
} | } | ||||
/* sched_add arguments (formerly setrunqueue) */ | /* sched_add arguments (formerly setrunqueue) */ | ||||
#define SRQ_BORING 0x0000 /* No special circumstances. */ | #define SRQ_BORING 0x0000 /* No special circumstances. */ | ||||
#define SRQ_YIELDING 0x0001 /* We are yielding (from mi_switch). */ | #define SRQ_YIELDING 0x0001 /* We are yielding (from mi_switch). */ | ||||
#define SRQ_OURSELF 0x0002 /* It is ourself (from mi_switch). */ | #define SRQ_OURSELF 0x0002 /* It is ourself (from mi_switch). */ | ||||
#define SRQ_INTR 0x0004 /* It is probably urgent. */ | #define SRQ_INTR 0x0004 /* It is probably urgent. */ | ||||
▲ Show 20 Lines • Show All 79 Lines • Show Last 20 Lines |