]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/kern/syscall_subr.c
xnu-344.tar.gz
[apple/xnu.git] / osfmk / kern / syscall_subr.c
index b5ff64c69babbdb0bf60e2dcb8c73e078a4bd150..886f49f0003820d7922bd20ef4fa303dcad77bfc 100644 (file)
@@ -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);