git: 2ba9debd3ac9 - main - sched_ule: Document fields of 'struct runq_steal_pred_data'
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 14 Nov 2026 16:29:43 UTC
The branch main has been updated by olce:
URL: https://cgit.FreeBSD.org/src/commit/?id=2ba9debd3ac9d3cdc49936074cef3d97c47e9346
commit 2ba9debd3ac9d3cdc49936074cef3d97c47e9346
Author: Olivier Certner <olce@FreeBSD.org>
AuthorDate: 2026-11-12 11:21:53 +0000
Commit: Olivier Certner <olce@FreeBSD.org>
CommitDate: 2026-11-14 16:29:20 +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
---
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 45480fda9cb3..76e8d922172f 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;