18,11 → 18,11 |
|
/** |
------------ |
CVS : $Id: activate.c,v 1.10 2004-09-02 13:48:08 giacomo Exp $ |
CVS : $Id: activate.c,v 1.11 2006-06-27 08:56:57 tullio Exp $ |
|
File: $File$ |
Revision: $Revision: 1.10 $ |
Last update: $Date: 2004-09-02 13:48:08 $ |
Revision: $Revision: 1.11 $ |
Last update: $Date: 2006-06-27 08:56:57 $ |
------------ |
|
task_activate & group_activate |
160,8 → 160,8 |
+*/ |
int group_activate_at(WORD g, struct timespec *t) |
{ |
PID i; /* a counter */ |
register LEVEL l; /* a level value */ |
PID i; /* a counter */ |
register LEVEL l; /* a level value */ |
|
if (g == 0) { |
errno = EINVALID_GROUP; |
172,10 → 172,11 |
into the global_context... we only have to call |
the task_activate of the level +*/ |
if (calling_runlevel_func) { |
SYS_FLAGS f; |
f=kern_fsave(); |
SYS_FLAGS f; |
f = kern_fsave(); |
|
for (i=0 ; i<MAX_PROC; i++) |
for (i = 0; i < MAX_PROC; i++) { |
if (proc_table[i].status != FREE) { |
if (proc_table[i].group == g) { |
if (proc_table[i].control & FREEZE_ACTIVATION) { |
proc_table[i].frozen_activations++; |
182,46 → 183,54 |
continue; |
} |
/* tracer stuff */ |
TRACER_LOGEVENT(FTrace_EVT_task_activate,(unsigned short int)proc_table[i].context,0); |
TRACER_LOGEVENT(FTrace_EVT_task_activate, (unsigned short int)proc_table[i].context, 0); |
l = proc_table[i].task_level; |
level_table[l]->public_activate(l,i,t); |
} |
} |
} |
|
kern_frestore(f); |
return 0; |
kern_frestore(f); |
return 0; |
} |
|
if (ll_ActiveInt()) { |
SYS_FLAGS f; |
f=kern_fsave(); |
for (i=0 ; i<MAX_PROC; i++) |
if (proc_table[i].group == g) { |
if (proc_table[i].control & FREEZE_ACTIVATION) { |
proc_table[i].frozen_activations++; |
continue; |
f = kern_fsave(); |
for (i = 0; i < MAX_PROC; i++) { |
if (proc_table[i].status != FREE) { |
if (proc_table[i].group == g) { |
if (proc_table[i].control & FREEZE_ACTIVATION) { |
proc_table[i].frozen_activations++; |
continue; |
} |
/* tracer stuff */ |
TRACER_LOGEVENT(FTrace_EVT_task_activate, (unsigned short int)proc_table[i].context, 0); |
l = proc_table[i].task_level; |
level_table[l]->public_activate(l,i,t); |
event_need_reschedule(); |
} |
/* tracer stuff */ |
TRACER_LOGEVENT(FTrace_EVT_task_activate,(unsigned short int)proc_table[i].context,0); |
l = proc_table[i].task_level; |
level_table[l]->public_activate(l,i,t); |
event_need_reschedule(); |
} |
} |
kern_frestore(f); |
} |
else { |
proc_table[exec_shadow].context = kern_context_save(); |
|
for (i=0 ; i<MAX_PROC; i++) |
if (proc_table[i].group == g) { |
if (proc_table[i].control & FREEZE_ACTIVATION) { |
proc_table[i].frozen_activations++; |
continue; |
for (i = 0 ; i < MAX_PROC; i++) { |
if (proc_table[i].status != FREE) { |
if (proc_table[i].group == g) { |
if (proc_table[i].control & FREEZE_ACTIVATION) { |
proc_table[i].frozen_activations++; |
continue; |
} |
l = proc_table[i].task_level; |
level_table[l]->public_activate(l,i,t); |
/* tracer stuff */ |
TRACER_LOGEVENT(FTrace_EVT_task_activate,(unsigned short int)proc_table[i].context,0); |
} |
l = proc_table[i].task_level; |
level_table[l]->public_activate(l,i,t); |
/* tracer stuff */ |
TRACER_LOGEVENT(FTrace_EVT_task_activate,(unsigned short int)proc_table[i].context,0); |
} |
} |
|
scheduler(); |
kern_context_load(proc_table[exec_shadow].context); |