From 7f47f4174d27800c26813009a25b25ac78d0b959 Mon Sep 17 00:00:00 2001 From: Tomas Hruby Date: Fri, 16 Jul 2010 09:40:12 +0000 Subject: [PATCH] Fixed comments in sched - not only PM can send sched requests. RS too. --- servers/sched/schedule.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/servers/sched/schedule.c b/servers/sched/schedule.c index 6846477b8..9def6ae11 100644 --- a/servers/sched/schedule.c +++ b/servers/sched/schedule.c @@ -2,9 +2,9 @@ * * The entry points are: * do_noquantum: Called on behalf of process' that run out of quantum - * do_start_scheduling Request from PM to start scheduling a proc - * do_stop_scheduling Request from PM to stop scheduling a proc - * do_nice Request from PM to change the nice level on a proc + * do_start_scheduling Request to start scheduling a proc + * do_stop_scheduling Request to stop scheduling a proc + * do_nice Request to change the nice level on a proc * init_scheduling Called from main.c to set up/prepare scheduling */ #include "sched.h" @@ -58,7 +58,7 @@ PUBLIC int do_stop_scheduling(message *m_ptr) register struct schedproc *rmp; int rv, proc_nr_n; - /* Only accept stop messages from PM */ + /* check who can send you requests */ if (!accept_message(m_ptr)) return EPERM; @@ -86,7 +86,7 @@ PUBLIC int do_start_scheduling(message *m_ptr) assert(m_ptr->m_type == SCHEDULING_START || m_ptr->m_type == SCHEDULING_INHERIT); - /* Only accept start messages from PM */ + /* check who can send you requests */ if (!accept_message(m_ptr)) return EPERM; @@ -170,7 +170,7 @@ PUBLIC int do_nice(message *m_ptr) int proc_nr_n; unsigned new_q, old_q, old_max_q; - /* Only accept nice messages from PM */ + /* check who can send you requests */ if (!accept_message(m_ptr)) return EPERM; -- 2.44.0