4 #include <minix/sched.h>
6 /*===========================================================================*
8 *===========================================================================*/
9 int sched_stop(endpoint_t scheduler_e
, endpoint_t schedulee_e
)
14 /* If the kernel is the scheduler, it will implicitly stop scheduling
15 * once another process takes over or the process terminates */
16 if (scheduler_e
== KERNEL
|| scheduler_e
== NONE
)
19 /* User-scheduled, perform the call */
20 assert(_ENDPOINT_P(scheduler_e
) >= 0);
21 assert(_ENDPOINT_P(schedulee_e
) >= 0);
23 memset(&m
, 0, sizeof(m
));
24 m
.m_lsys_sched_scheduling_stop
.endpoint
= schedulee_e
;
25 if ((rv
= _taskcall(scheduler_e
, SCHEDULING_STOP
, &m
))) {