Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

sched_ext: Remove unused code in the do_pick_task_scx()

The kick_idle variable is no longer used, this commit therefore remove
it and also remove associated code in the do_pick_task_scx().

Signed-off-by: Zqiang <qiang.zhang@linux.dev>
Reviewed-by: Andrea Righi <arighi@nvidia.com>
Reviewed-by: Emil Tsalapatis <emil@etsalapatis.com>
Signed-off-by: Tejun Heo <tj@kernel.org>

authored by

Zqiang and committed by
Tejun Heo
bb27226f 579a3297

+2 -6
+2 -6
kernel/sched/ext.c
··· 2446 2446 do_pick_task_scx(struct rq *rq, struct rq_flags *rf, bool force_scx) 2447 2447 { 2448 2448 struct task_struct *prev = rq->curr; 2449 - bool keep_prev, kick_idle = false; 2449 + bool keep_prev; 2450 2450 struct task_struct *p; 2451 2451 2452 2452 /* see kick_cpus_irq_workfn() */ ··· 2488 2488 refill_task_slice_dfl(rcu_dereference_sched(scx_root), p); 2489 2489 } else { 2490 2490 p = first_local_task(rq); 2491 - if (!p) { 2492 - if (kick_idle) 2493 - scx_kick_cpu(rcu_dereference_sched(scx_root), 2494 - cpu_of(rq), SCX_KICK_IDLE); 2491 + if (!p) 2495 2492 return NULL; 2496 - } 2497 2493 2498 2494 if (unlikely(!p->scx.slice)) { 2499 2495 struct scx_sched *sch = rcu_dereference_sched(scx_root);