]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/kern/syscall_subr.c
xnu-2050.48.11.tar.gz
[apple/xnu.git] / osfmk / kern / syscall_subr.c
index e45f99f17e9f9ef5fbd9ad13a4985a33287376fa..89fc63b1bda826058287590789a518a0165d84bd 100644 (file)
@@ -254,7 +254,7 @@ thread_switch(
                        ip_unlock(port);
 
                        thread = convert_port_to_thread(port);
                        ip_unlock(port);
 
                        thread = convert_port_to_thread(port);
-                       ipc_port_release(port);
+                       ip_release(port);
 
                        if (thread == self) {
                                (void)thread_deallocate_internal(thread);
 
                        if (thread == self) {
                                (void)thread_deallocate_internal(thread);
@@ -356,7 +356,7 @@ thread_depress_abstime(
 
                if (interval != 0) {
                        clock_absolutetime_interval_to_deadline(interval, &deadline);
 
                if (interval != 0) {
                        clock_absolutetime_interval_to_deadline(interval, &deadline);
-                       if (!timer_call_enter(&self->depress_timer, deadline, 0))
+                       if (!timer_call_enter(&self->depress_timer, deadline, TIMER_CALL_CRITICAL))
                                self->depress_timer_active++;
                }
        }
                                self->depress_timer_active++;
                }
        }
@@ -453,7 +453,7 @@ thread_poll_yield(
                        self->sched_flags |= TH_SFLAG_POLLDEPRESS;
 
                        abstime += (total_computation >> sched_poll_yield_shift);
                        self->sched_flags |= TH_SFLAG_POLLDEPRESS;
 
                        abstime += (total_computation >> sched_poll_yield_shift);
-                       if (!timer_call_enter(&self->depress_timer, abstime, 0))
+                       if (!timer_call_enter(&self->depress_timer, abstime, TIMER_CALL_CRITICAL))
                                self->depress_timer_active++;
                        thread_unlock(self);
 
                                self->depress_timer_active++;
                        thread_unlock(self);