mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Run softclock threads at a hardware ithread priority.
Add a new PI_SOFTCLOCK for use by softclock threads. Currently this maps to PI_AV which is the second-highest ithread priority. Reviewed by: mav, kib Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D33693
This commit is contained in:
parent
1ac10fa429
commit
c7aa0304d5
2 changed files with 2 additions and 1 deletions
|
|
@ -393,7 +393,7 @@ start_softclock(void *dummy)
|
|||
cc->cc_thread = td;
|
||||
thread_lock(td);
|
||||
sched_class(td, PRI_ITHD);
|
||||
sched_prio(td, PI_SWI(SWI_CLOCK));
|
||||
sched_prio(td, PI_SOFTCLOCK);
|
||||
TD_SET_IWAIT(td);
|
||||
thread_lock_set(td, (struct mtx *)&cc->cc_lock);
|
||||
thread_unlock(td);
|
||||
|
|
|
|||
|
|
@ -87,6 +87,7 @@
|
|||
|
||||
#define PI_REALTIME (PRI_MIN_ITHD + 0)
|
||||
#define PI_AV (PRI_MIN_ITHD + 4)
|
||||
#define PI_SOFTCLOCK PI_AV
|
||||
#define PI_NET (PRI_MIN_ITHD + 8)
|
||||
#define PI_DISK (PRI_MIN_ITHD + 12)
|
||||
#define PI_TTY (PRI_MIN_ITHD + 16)
|
||||
|
|
|
|||
Loading…
Reference in a new issue