mirror of
https://github.com/opnsense/src.git
synced 2026-06-10 17:22:46 -04:00
epoch_test: Assign different priorities using offset 1
Replace the hardcoded 4 (old RQ_PPQ) by 1 (new RQ_PPQ), as all priority levels are now treated differently. MFC after: 1 month Event: Kitchener-Waterloo Hackathon 202506 Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
b2a9ee2a72
commit
a2d1c3bc2b
1 changed files with 1 additions and 1 deletions
|
|
@ -147,7 +147,7 @@ test_modinit(void)
|
|||
printf("%s: kthread_add(epoch_test): error %d", __func__,
|
||||
error);
|
||||
} else {
|
||||
pri_off = (i*4)%pri_range;
|
||||
pri_off = i%pri_range;
|
||||
td = testthreads[i];
|
||||
thread_lock(td);
|
||||
sched_prio(td, PRI_MIN_REALTIME + pri_off);
|
||||
|
|
|
|||
Loading…
Reference in a new issue