mirror of
https://github.com/torvalds/linux.git
synced 2026-09-25 09:41:03 +02:00
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:
parent
85570f10a4
commit
3cd1f657fa
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user