sched/fair: Rename check_preempt_wakeup() to check_preempt_wakeup_fair()
authorIngo Molnar <mingo@kernel.org>
Tue, 19 Sep 2023 08:31:15 +0000 (10:31 +0200)
committerIngo Molnar <mingo@kernel.org>
Tue, 19 Sep 2023 08:32:15 +0000 (10:32 +0200)
Other scheduling classes already postfix their similar methods
with the class name.

Signed-off-by: Ingo Molnar <mingo@kernel.org>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
kernel/sched/fair.c

index d0877878bcdbcf735d3dc0ebfb224261ac05363b..aeaf31e32c6769c7b65268980519ce6c6390be90 100644 (file)
@@ -7994,7 +7994,7 @@ static void set_next_buddy(struct sched_entity *se)
 /*
  * Preempt the current task with a newly woken task if needed:
  */
-static void check_preempt_wakeup(struct rq *rq, struct task_struct *p, int wake_flags)
+static void check_preempt_wakeup_fair(struct rq *rq, struct task_struct *p, int wake_flags)
 {
        struct task_struct *curr = rq->curr;
        struct sched_entity *se = &curr->se, *pse = &p->se;
@@ -12830,7 +12830,7 @@ DEFINE_SCHED_CLASS(fair) = {
        .yield_task             = yield_task_fair,
        .yield_to_task          = yield_to_task_fair,
 
-       .check_preempt_curr     = check_preempt_wakeup,
+       .check_preempt_curr     = check_preempt_wakeup_fair,
 
        .pick_next_task         = __pick_next_task_fair,
        .put_prev_task          = put_prev_task_fair,