FreeBSD: drop unused idle thread code

This commit is contained in:
Christian Göttsche 2021-01-27 15:12:02 +01:00 committed by BenBE
parent 8c43856380
commit 46370231e3
1 changed files with 0 additions and 11 deletions

View File

@ -460,7 +460,6 @@ void ProcessList_goThroughEntries(ProcessList* super, bool pauseProcessUpdate) {
for (int i = 0; i < count; i++) {
const struct kinfo_proc* kproc = &kprocs[i];
bool preExisting = false;
// TODO: bool isIdleProcess = false;
Process* proc = ProcessList_getProcess(super, kproc->ki_pid, &preExisting, FreeBSDProcess_new);
FreeBSDProcess* fp = (FreeBSDProcess*) proc;
@ -511,16 +510,6 @@ void ProcessList_goThroughEntries(ProcessList* super, bool pauseProcessUpdate) {
proc->percent_cpu = 100.0 * ((double)kproc->ki_pctcpu / (double)kernelFScale);
proc->percent_mem = 100.0 * proc->m_resident / (double)(super->totalMem);
/*
* TODO
* if (proc->percent_cpu > 0.1) {
* // system idle process should own all CPU time left regardless of CPU count
* if ( strcmp("idle", kproc->ki_comm) == 0 ) {
* isIdleProcess = true;
* }
* }
*/
proc->processor = kproc->ki_lastcpu;
proc->priority = kproc->ki_pri.pri_level - PZERO;