git: 41f8c364fb92 - stable/15 - sched_ule: Document fields of 'struct runq_steal_pred_data'
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 19 Nov 2026 15:32:18 UTC
The branch stable/15 has been updated by olce:
URL: https://cgit.FreeBSD.org/src/commit/?id=41f8c364fb92e53810155247158bc870adebbcde
commit 41f8c364fb92e53810155247158bc870adebbcde
Author: Olivier Certner <olce@FreeBSD.org>
AuthorDate: 2026-11-12 11:21:53 +0000
Commit: Olivier Certner <olce@FreeBSD.org>
CommitDate: 2026-11-19 15:31:55 +0000
sched_ule: Document fields of 'struct runq_steal_pred_data'
While here, re-order them to have inputs before outputs.
No functional change.
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
(cherry picked from commit 2ba9debd3ac9d3cdc49936074cef3d97c47e9346)
---
sys/kern/sched_ule.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/sys/kern/sched_ule.c b/sys/kern/sched_ule.c
index e6ce7e24aa80..c0ce9cff340d 100644
--- a/sys/kern/sched_ule.c
+++ b/sys/kern/sched_ule.c
@@ -1266,8 +1266,8 @@ tdq_notify(struct tdq *tdq, int lowpri)
}
struct runq_steal_pred_data {
- struct thread *td;
- int cpu;
+ int cpu; /* Destination CPU. */
+ struct thread *td; /* Found thread. */
};
static bool
@@ -1294,8 +1294,8 @@ runq_steal_range(struct runq *const rq, const int lvl_min, const int lvl_max,
int cpu)
{
struct runq_steal_pred_data data = {
- .td = NULL,
.cpu = cpu,
+ .td = NULL,
};
int idx;