OpenBSD/src unPtg5G — sys/kern sched_bsd.c kern_resource.c, sys/sys sched.h
Stop calling resched_proc() after changing the nice(3) value of a process. Changing the scheduling priority of a process happens rarely, so it isn't strictly necessary to update the current priority of every threads instantly. Moreover resched_proc() isn't well suited to perform this action: it doesn't consider the state of each thread nor move them to another runqueue. ok visa@
Version | Delta | File | |
---|---|---|---|
1.55 | +5 | -4 | sys/kern/sched_bsd.c |
1.68 | +1 | -2 | sys/kern/kern_resource.c |
1.54 | +1 | -2 | sys/sys/sched.h |
+7 | -8 | 3 files |