linux/kernel/sched
Peng Wang 423d02e146 sched/fair: Optimize dequeue_task_fair()
While looking at enqueue_task_fair and dequeue_task_fair, it occurred
to me that dequeue_task_fair can also be optimized as Vincent described
in commit 7d148be69e ("sched/fair: Optimize enqueue_task_fair()").

When encountering throttled cfs_rq, dequeue_throttle label can ensure
se not to be NULL, and rq->nr_running remains unchanged, so we can also
skip the early balance check.

Signed-off-by: Peng Wang <rocking@linux.alibaba.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Vincent Guittot <vincent.guittot@linaro.org>
Link: https://lkml.kernel.org/r/701eef9a40de93dcf5fe7063fd607bca5db38e05.1592287263.git.rocking@linux.alibaba.com
2020-06-25 13:45:44 +02:00
..
autogroup.c
autogroup.h
clock.c
completion.c
core.c sched: Micro optimization in pick_next_task() and in check_preempt_curr() 2020-06-25 13:45:44 +02:00
cpuacct.c
cpudeadline.c sched/deadline: Implement fallback mechanism for !fit case 2020-06-15 14:10:05 +02:00
cpudeadline.h
cpufreq.c
cpufreq_schedutil.c
cpupri.c
cpupri.h
cputime.c
deadline.c sched: Remove struct sched_class::next field 2020-06-25 13:45:44 +02:00
debug.c
fair.c sched/fair: Optimize dequeue_task_fair() 2020-06-25 13:45:44 +02:00
features.h
idle.c sched: Remove struct sched_class::next field 2020-06-25 13:45:44 +02:00
isolation.c isolcpus: Affine unbound kernel threads to housekeeping cpus 2020-06-15 14:10:03 +02:00
loadavg.c
Makefile
membarrier.c
pelt.c sched/pelt: Cleanup PELT divider 2020-06-15 14:10:06 +02:00
pelt.h sched/pelt: Cleanup PELT divider 2020-06-15 14:10:06 +02:00
psi.c psi: eliminate kthread_worker from psi trigger scheduling mechanism 2020-06-15 14:10:03 +02:00
rt.c sched: Remove struct sched_class::next field 2020-06-25 13:45:44 +02:00
sched-pelt.h
sched.h sched: Remove struct sched_class::next field 2020-06-25 13:45:44 +02:00
smp.h
stats.c
stats.h
stop_task.c sched: Remove struct sched_class::next field 2020-06-25 13:45:44 +02:00
swait.c
topology.c sched: correct SD_flags returned by tl->sd_flags() 2020-06-15 14:10:04 +02:00
wait.c
wait_bit.c