From: Tomas Hruby Date: Wed, 26 May 2010 07:16:39 +0000 (+0000) Subject: Various small scheduling related fixes X-Git-Tag: v3.1.7~35 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zlib_tech.html?a=commitdiff_plain;h=a8111c502713f96ce6fec3a157a8d7af54493ab6;p=minix.git Various small scheduling related fixes --- diff --git a/include/minix/syslib.h b/include/minix/syslib.h index f09339374..f15e08978 100644 --- a/include/minix/syslib.h +++ b/include/minix/syslib.h @@ -44,7 +44,7 @@ _PROTOTYPE( int sys_clear, (endpoint_t proc_ep)); _PROTOTYPE( int sys_exit, (void)); _PROTOTYPE( int sys_trace, (int req, endpoint_t proc_ep, long addr, long *data_p)); -_PROTOTYPE( int sys_schedule, (endpoint_t proc_ep, char priority, char quantum)); +_PROTOTYPE( int sys_schedule, (endpoint_t proc_ep, unsigned priority, unsigned quantum)); _PROTOTYPE( int sys_schedctl, (endpoint_t proc_ep)); /* Shorthands for sys_runctl() system call. */ diff --git a/lib/libsys/sys_schedule.c b/lib/libsys/sys_schedule.c index c6d5dae90..94354ed96 100644 --- a/lib/libsys/sys_schedule.c +++ b/lib/libsys/sys_schedule.c @@ -1,6 +1,6 @@ #include "syslib.h" -PUBLIC int sys_schedule(endpoint_t proc_ep, char priority, char quantum) +PUBLIC int sys_schedule(endpoint_t proc_ep, unsigned priority, unsigned quantum) { message m; diff --git a/servers/is/dmp_kernel.c b/servers/is/dmp_kernel.c index dc8dcfb88..f367cbeec 100644 --- a/servers/is/dmp_kernel.c +++ b/servers/is/dmp_kernel.c @@ -397,10 +397,10 @@ PUBLIC void proctab_dmp() size = rp->p_memmap[T].mem_len + ((rp->p_memmap[S].mem_phys + rp->p_memmap[S].mem_len) - data); printf(" %5d %10d ", _ENDPOINT_G(rp->p_endpoint), rp->p_endpoint); - printf("%-8.8s %02u 0x%08x%08x/%02u %6lu %6lu ", + printf("%-8.8s %5u %5lu %6lu %6lu ", rp->p_name, rp->p_priority, - rp->p_cpu_time_left.lo, rp->p_cpu_time_left.hi, rp->p_quantum_size_ms, + rp->p_quantum_size_ms, rp->p_user_time, rp->p_sys_time); PRINTRTS(rp); printf("\n"); diff --git a/servers/sched/schedule.c b/servers/sched/schedule.c index 4cfc9a266..247c3e1dc 100644 --- a/servers/sched/schedule.c +++ b/servers/sched/schedule.c @@ -21,7 +21,7 @@ PRIVATE unsigned balance_timeout; FORWARD _PROTOTYPE( int schedule_process, (struct schedproc * rmp) ); FORWARD _PROTOTYPE( void balance_queues, (struct timer *tp) ); -#define DEFAULT_USER_TIME_SLICE 8 +#define DEFAULT_USER_TIME_SLICE 200 /*===========================================================================* * do_noquantum *