git: c6838df83578 - stable/14 - epoch_test: Assign different priorities using offset 1
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 28 Jul 2025 13:31:30 UTC
The branch stable/14 has been updated by olce:
URL: https://cgit.FreeBSD.org/src/commit/?id=c6838df8357825d2f49c138b8a7d9d0bfdcc4760
commit c6838df8357825d2f49c138b8a7d9d0bfdcc4760
Author: Olivier Certner <olce@FreeBSD.org>
AuthorDate: 2025-03-13 09:31:45 +0000
Commit: Olivier Certner <olce@FreeBSD.org>
CommitDate: 2025-07-28 13:28:28 +0000
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
(cherry picked from commit a2d1c3bc2bb44a824a8d1f688aa1fd3b66fa759b)
---
sys/tests/epoch/epoch_test.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/tests/epoch/epoch_test.c b/sys/tests/epoch/epoch_test.c
index e34b5de1c422..f25e03344b36 100644
--- a/sys/tests/epoch/epoch_test.c
+++ b/sys/tests/epoch/epoch_test.c
@@ -148,7 +148,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);