sched/fair: Remove unused arguments from set_preempt_buddy()

On a tangential note, I just noticed set_preempt_buddy() has two unused
parameters. Seems to have been like that since it was introduced in
commit e837456fdc ("sched/fair: Reimplement NEXT_BUDDY to align with
EEVDF goals").

Signed-off-by: K Prateek Nayak <kprateek.nayak@amd.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
This commit is contained in:
K Prateek Nayak 2026-06-26 08:56:14 +02:00 committed by Peter Zijlstra
parent 85570f10a4
commit 3cd1f657fa

View File

@ -9742,9 +9742,7 @@ enum preempt_wakeup_action {
PREEMPT_WAKEUP_RESCHED, /* Force reschedule. */
};
static inline bool
set_preempt_buddy(struct cfs_rq *cfs_rq, int wake_flags,
struct sched_entity *pse, struct sched_entity *se)
static inline bool set_preempt_buddy(struct cfs_rq *cfs_rq, struct sched_entity *pse)
{
/*
* Keep existing buddy if the deadline is sooner than pse.
@ -9893,9 +9891,7 @@ static void wakeup_preempt_fair(struct rq *rq, struct task_struct *p, int wake_f
return;
/* Prefer picking wakee soon if appropriate. */
if (sched_feat(NEXT_BUDDY) &&
set_preempt_buddy(cfs_rq, wake_flags, pse, se)) {
if (sched_feat(NEXT_BUDDY) && set_preempt_buddy(cfs_rq, pse)) {
/*
* Decide whether to obey WF_SYNC hint for a new buddy. Old
* buddies are ignored as they may not be relevant to the