Skip to content

Commit fbb66ce

Browse files
Wang JinchaoIngo Molnar
authored andcommitted
sched/fair: Remove unused 'next_buddy_marked' local variable in check_preempt_wakeup_fair()
This variable became unused in: 5e963f2 ("sched/fair: Commit to EEVDF") Signed-off-by: Wang Jinchao <wangjinchao@xfusion.com> Signed-off-by: Ingo Molnar <mingo@kernel.org> Reviewed-by: Vincent Guittot <vincent.guittot@linaro.org> Link: https://lore.kernel.org/r/202312141319+0800-wangjinchao@xfusion.com
1 parent 3af7524 commit fbb66ce

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

kernel/sched/fair.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8221,7 +8221,6 @@ static void check_preempt_wakeup_fair(struct rq *rq, struct task_struct *p, int
82218221
struct task_struct *curr = rq->curr;
82228222
struct sched_entity *se = &curr->se, *pse = &p->se;
82238223
struct cfs_rq *cfs_rq = task_cfs_rq(curr);
8224-
int next_buddy_marked = 0;
82258224
int cse_is_idle, pse_is_idle;
82268225

82278226
if (unlikely(se == pse))
@@ -8238,7 +8237,6 @@ static void check_preempt_wakeup_fair(struct rq *rq, struct task_struct *p, int
82388237

82398238
if (sched_feat(NEXT_BUDDY) && !(wake_flags & WF_FORK)) {
82408239
set_next_buddy(pse);
8241-
next_buddy_marked = 1;
82428240
}
82438241

82448242
/*

0 commit comments

Comments
 (0)