No need for a linux-deallocatable scheduler

This commit is contained in:
Adrien Bourmault 2021-03-01 17:33:32 +01:00
parent 5978e70303
commit e30dc65d7d
Signed by: neox
GPG Key ID: 6EB408FE0ACEC664
1 changed files with 0 additions and 31 deletions

View File

@ -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);
//