HomeFreeBSD

- Set the priority of the page zeroing thread using sched_prio() when the
rS137268Unpublished

Unpublished Commit ยท Learn More

No further details are available.

Description

  • Set the priority of the page zeroing thread using sched_prio() when the thread is created rather than adjusting the priority in the main function. (kthread_create() should probably take the initial priority as an argument.)
  • Only yield the CPU in the !PREEMPTION case if there are any other runnable threads. Yielding when there isn't anything else better to do just wastes time in pointless context switches (albeit while the system is idle.)

Details

Provenance
jhbAuthored on
Parents
rS137267: - Make setting of IT_ENTROPY a bit simpler in ithread_update().
Branches
Unknown
Tags
Unknown

Event Timeline