]> Zhao Yanbai Git Server - minix.git/commitdiff
Various small scheduling related fixes
authorTomas Hruby <tom@minix3.org>
Wed, 26 May 2010 07:16:39 +0000 (07:16 +0000)
committerTomas Hruby <tom@minix3.org>
Wed, 26 May 2010 07:16:39 +0000 (07:16 +0000)
include/minix/syslib.h
lib/libsys/sys_schedule.c
servers/is/dmp_kernel.c
servers/sched/schedule.c

index f09339374dae829c4ec0bd2027162ec5fc81a401..f15e08978cd43532b47a68333d75566997d61763 100644 (file)
@@ -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. */
index c6d5dae908f6c54b44e25ffceceb4c79e7e3f9fd..94354ed96b461688c25657a1c0f741c91e677cf8 100644 (file)
@@ -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;
 
index dc8dcfb88d692dda26137171c0e800c30642e8bb..f367cbeec45be140f45bf943cb2d9a5ef550f7ef 100644 (file)
@@ -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");
index 4cfc9a266b13d9b1cee753c2924ad66161778cf6..247c3e1dc283b7c8e67ff091eafbafdb7ce78ec5 100644 (file)
@@ -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                                 *