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:
Olivier Certner 2025-03-13 10:31:45 +01:00
parent b2a9ee2a72
commit a2d1c3bc2b
No known key found for this signature in database
GPG key ID: 8CA13040971E2627

View file

@ -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);