X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/d52fe63fc81f7e44faaae711812a211a78434976..9bccf70c0258c7cac2dcb80011b2a964d884c552:/osfmk/kern/syscall_subr.c diff --git a/osfmk/kern/syscall_subr.c b/osfmk/kern/syscall_subr.c index b5ff64c69..886f49f00 100644 --- a/osfmk/kern/syscall_subr.c +++ b/osfmk/kern/syscall_subr.c @@ -120,7 +120,7 @@ swtch(void) counter(c_swtch_block++); - thread_block(swtch_continue); + thread_block_reason(swtch_continue, AST_YIELD); mp_disable_preemption(); myprocessor = current_processor(); @@ -170,7 +170,7 @@ swtch_pri( _mk_sp_thread_depress_abstime(std_quantum); - thread_block(swtch_pri_continue); + thread_block_reason(swtch_pri_continue, AST_YIELD); _mk_sp_thread_depress_abort(current_thread(), FALSE);