Subversion Repositories shark

Compare Revisions

Ignore whitespace Rev 920 → Rev 939

/shark/trunk/kernel/modules/posix.c
20,11 → 20,11
 
/**
------------
CVS : $Id: posix.c,v 1.10 2004-10-25 14:44:28 trimarchi Exp $
CVS : $Id: posix.c,v 1.11 2005-02-12 13:23:14 trimarchi Exp $
 
File: $File$
Revision: $Revision: 1.10 $
Last update: $Date: 2004-10-25 14:44:28 $
Revision: $Revision: 1.11 $
Last update: $Date: 2005-02-12 13:23:14 $
------------
 
This file contains the scheduling module compatible with POSIX
216,7 → 216,6
proc_table[p].task_level = lev->new_level[p];
msg.command = STD_ACTIVATE_TASK;
level_table[lev->new_level[p]] -> public_message(lev->new_level[p],p,&msg);
 
return;
 
}
333,14 → 332,13
msg = (STD_command_message *)m;
 
switch(msg->command) {
case STD_SET_NEW_LEVEL:
case STD_SET_NEW_LEVEL:
lev->flag[p] |= POSIX_CHANGE_LEVEL;
lev->new_level[p] = (int)(msg->param);
 
break;
case STD_SET_NEW_MODEL:
 
nrt = (NRT_TASK_MODEL *)(msg->param);
 
lev->priority[p] = nrt->weight;
468,8 → 466,14
lev->l.public_guarantee = NULL;
 
/* fill the POSIX descriptor part */
for (i = 0; i < MAX_PROC; i++)
for (i = 0; i < MAX_PROC; i++) {
lev->nact[i] = -1;
lev->flag[i] = 0 ;
lev->new_level[i] = -1;
lev->new_slice[i] = -1;
lev->new_control[i] = 0;
}
 
lev->maxpriority = prioritylevels -1;