CVSROOT: /cvs Module name: src Changes by: m...@cvs.openbsd.org 2019/01/28 04:48:13
Modified files: sys/kern : sched_bsd.c Log message: Stop accounting/updating priorities for Idle threads. Idle threads are never placed on the runqueue so their priority doesn't matter. This fixes an accounting bug where top(1) would report a high CPU usage for Idle threads of secondary CPUs right after booting. That's because schedcpu() would give 100% CPU time to the Idle thread until "real" threads get scheduled on the corresponding CPU. Issue reported by bluhm@, ok visa@, kettenis@