Changeset View
Changeset View
Standalone View
Standalone View
sys/kern/subr_trap.c
Show First 20 Lines • Show All 250 Lines • ▼ Show 20 Lines | ast_deregister(int ast) | ||||
ae->ae_tdp = 0; | ae->ae_tdp = 0; | ||||
} | } | ||||
void | void | ||||
ast_sched_locked(struct thread *td, int tda) | ast_sched_locked(struct thread *td, int tda) | ||||
{ | { | ||||
THREAD_LOCK_ASSERT(td, MA_OWNED); | THREAD_LOCK_ASSERT(td, MA_OWNED); | ||||
MPASS(tda < TDA_MAX); | MPASS(tda < TDA_MAX); | ||||
MPASS(__bitcount(tda) == 1); | |||||
td->td_ast |= TDAI(tda); | td->td_ast |= TDAI(tda); | ||||
} | } | ||||
void | void | ||||
ast_unsched_locked(struct thread *td, int tda) | ast_unsched_locked(struct thread *td, int tda) | ||||
{ | { | ||||
THREAD_LOCK_ASSERT(td, MA_OWNED); | THREAD_LOCK_ASSERT(td, MA_OWNED); | ||||
MPASS(tda < TDA_MAX); | MPASS(tda < TDA_MAX); | ||||
MPASS(__bitcount(tda) == 1); | |||||
td->td_ast &= ~TDAI(tda); | td->td_ast &= ~TDAI(tda); | ||||
} | } | ||||
void | void | ||||
ast_sched(struct thread *td, int tda) | ast_sched(struct thread *td, int tda) | ||||
{ | { | ||||
thread_lock(td); | thread_lock(td); | ||||
▲ Show 20 Lines • Show All 118 Lines • Show Last 20 Lines |