]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
sched: Move struct balance_callback definition upward
authorTejun Heo <tj@kernel.org>
Fri, 12 Jul 2024 18:20:32 +0000 (08:20 -1000)
committerTejun Heo <tj@kernel.org>
Fri, 12 Jul 2024 18:20:32 +0000 (08:20 -1000)
Move struct balance_callback definition upward so that it's visible to
class-specific rq struct definitions. This will be used to embed a struct
balance_callback in struct scx_rq.

No functional changes.

Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: David Vernet <void@manifault.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
kernel/sched/sched.h

index 04184e87ba7cdae5a5166cad83b88d79e293289e..86314a17f1c74a40c6623ec0e51f64657bd21d9c 100644 (file)
@@ -615,6 +615,11 @@ do {                                                                       \
 # define u64_u32_load(var)             u64_u32_load_copy(var, var##_copy)
 # define u64_u32_store(var, val)       u64_u32_store_copy(var, var##_copy, val)
 
+struct balance_callback {
+       struct balance_callback *next;
+       void (*func)(struct rq *rq);
+};
+
 /* CFS-related fields in a runqueue */
 struct cfs_rq {
        struct load_weight      load;
@@ -1054,11 +1059,6 @@ struct uclamp_rq {
 DECLARE_STATIC_KEY_FALSE(sched_uclamp_used);
 #endif /* CONFIG_UCLAMP_TASK */
 
-struct balance_callback {
-       struct balance_callback *next;
-       void (*func)(struct rq *rq);
-};
-
 /*
  * This is the main, per-CPU runqueue data structure.
  *