mirror of
https://gitlab.os-k.eu/os-k-team/os-k.git
synced 2023-08-25 14:03:10 +02:00
No need for a linux-deallocatable scheduler
This commit is contained in:
parent
5978e70303
commit
e30dc65d7d
@ -311,37 +311,6 @@ void PsInitSched(void)
|
||||
DebugLog("Scheduler initialized\n");
|
||||
}
|
||||
|
||||
//
|
||||
// Shutdowns scheduler
|
||||
//
|
||||
void PsFiniSched(void)
|
||||
{
|
||||
assert(IdlePrioProcs && ReglPrioProcs && ServPrioProcs && TimeCritProcs);
|
||||
|
||||
PsInitialized = false;
|
||||
|
||||
PsLockSched();
|
||||
|
||||
while (IdlePrioProcs->length > 0)
|
||||
ExRemoveNode(IdlePrioProcs, IdlePrioProcs->first);
|
||||
|
||||
while (ReglPrioProcs->length > 0)
|
||||
ExRemoveNode(ReglPrioProcs, ReglPrioProcs->first);
|
||||
|
||||
while (ServPrioProcs->length > 0)
|
||||
ExRemoveNode(ServPrioProcs, ServPrioProcs->first);
|
||||
|
||||
while (TimeCritProcs->length > 0)
|
||||
ExRemoveNode(TimeCritProcs, TimeCritProcs->first);
|
||||
|
||||
ExDestroyListHead(IdlePrioProcs); IdlePrioProcs = NULL;
|
||||
ExDestroyListHead(ReglPrioProcs); ReglPrioProcs = NULL;
|
||||
ExDestroyListHead(ServPrioProcs); ServPrioProcs = NULL;
|
||||
ExDestroyListHead(TimeCritProcs); TimeCritProcs = NULL;
|
||||
|
||||
PsUnlockSched();
|
||||
}
|
||||
|
||||
#define PrintProc(proc) KernLog("{ %d, '%s', %d , %lu}\n", (proc)->pid, \
|
||||
PsPrioClassesNames[(proc)->prioClass], (proc)->prioLevel, (proc)->timeSlice);
|
||||
//
|
||||
|
Loading…
x
Reference in New Issue
Block a user