summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb
diff options
context:
space:
mode:
authormpi <mpi@openbsd.org>2019-07-08 18:53:18 +0000
committermpi <mpi@openbsd.org>2019-07-08 18:53:18 +0000
commit55eab86cd4f592594f21d159b23c2a58acefe836 (patch)
tree34fb972eeddbd3301dcb62990a82450c0dba43c5 /sys/dev/usb
parentGet rid of an old convention of wrapping preprocessor constants in curly (diff)
downloadwireguard-openbsd-55eab86cd4f592594f21d159b23c2a58acefe836.tar.xz
wireguard-openbsd-55eab86cd4f592594f21d159b23c2a58acefe836.zip
Untangle code setting the scheduling priority of a thread.
- `p_estcpu' and `p_usrpri' represent the priority and are now only set in a single function. - Call resched_proc() after updating the priority and stop calling it from schedclock() since `spc_curpriority' should match curproc's priority. - Rename updatepri() to match decay_cpu() and stop updating per-thread member. - Merge two resched_proc() in one inside setrunnable(). Tweak and ok visa@
Diffstat (limited to 'sys/dev/usb')
0 files changed, 0 insertions, 0 deletions