]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
sched/eevdf: Remove min_vruntime_copy
authorPeter Zijlstra <peterz@infradead.org>
Wed, 4 Oct 2023 10:43:53 +0000 (12:43 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Sat, 17 Aug 2024 09:06:40 +0000 (11:06 +0200)
Since commit e8f331bcc270 ("sched/smp: Use lag to simplify
cross-runqueue placement") the min_vruntime_copy is no longer used.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Valentin Schneider <vschneid@redhat.com>
Tested-by: Valentin Schneider <vschneid@redhat.com>
Link: https://lkml.kernel.org/r/20240727105028.395297941@infradead.org
kernel/sched/fair.c
kernel/sched/sched.h

index 6d39a824bbe1293cc165e927f82480cbd73f14f2..8201f0f4e709505d53793da9213a14d7e398620c 100644 (file)
@@ -779,8 +779,7 @@ static void update_min_vruntime(struct cfs_rq *cfs_rq)
        }
 
        /* ensure we never gain time by being placed backwards. */
-       u64_u32_store(cfs_rq->min_vruntime,
-                     __update_min_vruntime(cfs_rq, vruntime));
+       cfs_rq->min_vruntime = __update_min_vruntime(cfs_rq, vruntime);
 }
 
 static inline bool __entity_less(struct rb_node *a, const struct rb_node *b)
@@ -12933,7 +12932,7 @@ static void set_next_task_fair(struct rq *rq, struct task_struct *p, bool first)
 void init_cfs_rq(struct cfs_rq *cfs_rq)
 {
        cfs_rq->tasks_timeline = RB_ROOT_CACHED;
-       u64_u32_store(cfs_rq->min_vruntime, (u64)(-(1LL << 20)));
+       cfs_rq->min_vruntime = (u64)(-(1LL << 20));
 #ifdef CONFIG_SMP
        raw_spin_lock_init(&cfs_rq->removed.lock);
 #endif
index 1e1d1b467af2c9690854f8b957ebd6ca48fe110c..a6d6b6f106dacf65f16abc37a5eceb54c50221d4 100644 (file)
@@ -613,10 +613,6 @@ struct cfs_rq {
        u64                     min_vruntime_fi;
 #endif
 
-#ifndef CONFIG_64BIT
-       u64                     min_vruntime_copy;
-#endif
-
        struct rb_root_cached   tasks_timeline;
 
        /*