Various small scheduling related fixes
This commit is contained in:
parent
51ff10d7c0
commit
a8111c5027
4 changed files with 5 additions and 5 deletions
|
@ -44,7 +44,7 @@ _PROTOTYPE( int sys_clear, (endpoint_t proc_ep));
|
||||||
_PROTOTYPE( int sys_exit, (void));
|
_PROTOTYPE( int sys_exit, (void));
|
||||||
_PROTOTYPE( int sys_trace, (int req, endpoint_t proc_ep, long addr, long *data_p));
|
_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));
|
_PROTOTYPE( int sys_schedctl, (endpoint_t proc_ep));
|
||||||
|
|
||||||
/* Shorthands for sys_runctl() system call. */
|
/* Shorthands for sys_runctl() system call. */
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#include "syslib.h"
|
#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;
|
message m;
|
||||||
|
|
||||||
|
|
|
@ -397,10 +397,10 @@ PUBLIC void proctab_dmp()
|
||||||
size = rp->p_memmap[T].mem_len
|
size = rp->p_memmap[T].mem_len
|
||||||
+ ((rp->p_memmap[S].mem_phys + rp->p_memmap[S].mem_len) - data);
|
+ ((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(" %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_name,
|
||||||
rp->p_priority,
|
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);
|
rp->p_user_time, rp->p_sys_time);
|
||||||
PRINTRTS(rp);
|
PRINTRTS(rp);
|
||||||
printf("\n");
|
printf("\n");
|
||||||
|
|
|
@ -21,7 +21,7 @@ PRIVATE unsigned balance_timeout;
|
||||||
FORWARD _PROTOTYPE( int schedule_process, (struct schedproc * rmp) );
|
FORWARD _PROTOTYPE( int schedule_process, (struct schedproc * rmp) );
|
||||||
FORWARD _PROTOTYPE( void balance_queues, (struct timer *tp) );
|
FORWARD _PROTOTYPE( void balance_queues, (struct timer *tp) );
|
||||||
|
|
||||||
#define DEFAULT_USER_TIME_SLICE 8
|
#define DEFAULT_USER_TIME_SLICE 200
|
||||||
|
|
||||||
/*===========================================================================*
|
/*===========================================================================*
|
||||||
* do_noquantum *
|
* do_noquantum *
|
||||||
|
|
Loading…
Reference in a new issue