linux/kernel/sched
Hao Jia 96500560f0 sched/core: Avoid double calling update_rq_clock() in __balance_push_cpu_stop()
There is a double update_rq_clock() invocation:

  __balance_push_cpu_stop()
    update_rq_clock()
    __migrate_task()
      update_rq_clock()

Sadly select_fallback_rq() also needs update_rq_clock() for
__do_set_cpus_allowed(), it is not possible to remove the update from
__balance_push_cpu_stop(). So remove it from __migrate_task() and
ensure all callers of this function call update_rq_clock() prior to
calling it.

Signed-off-by: Hao Jia <jiahao.os@bytedance.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Vincent Guittot <vincent.guittot@linaro.org>
Link: https://lkml.kernel.org/r/20230613082012.49615-3-jiahao.os@bytedance.com
2023-06-16 22:08:12 +02:00
..
autogroup.c
autogroup.h
build_policy.c
build_utility.c
clock.c sched/clock: Provide local_clock_noinstr() 2023-06-05 21:11:09 +02:00
completion.c
core.c sched/core: Avoid double calling update_rq_clock() in __balance_push_cpu_stop() 2023-06-16 22:08:12 +02:00
core_sched.c
cpuacct.c
cpudeadline.c
cpudeadline.h
cpufreq.c
cpufreq_schedutil.c sched/fair, cpufreq: Introduce 'runnable boosting' 2023-06-05 21:13:44 +02:00
cpupri.c
cpupri.h
cputime.c cputime: remove cputime_to_nsecs fallback 2022-12-27 12:52:17 +01:00
deadline.c sched/deadline: Fix bandwidth reclaim equation in GRUB 2023-06-16 22:08:11 +02:00
debug.c sched/debug: Correct printing for rq->nr_uninterruptible 2023-05-08 10:58:39 +02:00
fair.c sched/fair: Rename variable cpu_util eff_util 2023-06-16 17:08:01 +02:00
features.h
idle.c sched/idle: Mark arch_cpu_idle_dead() __noreturn 2023-03-08 08:44:28 -08:00
isolation.c
loadavg.c
Makefile
membarrier.c sched/membarrier: Introduce MEMBARRIER_CMD_GET_REGISTRATIONS 2023-01-07 11:29:29 +01:00
pelt.c
pelt.h
psi.c sched/psi: Avoid resetting the min update period when it is unnecessary 2023-05-20 12:53:16 +02:00
rt.c sched/rt: Fix bad task migration for rt tasks 2023-04-21 13:24:21 +02:00
sched-pelt.h
sched.h sched/deadline: Fix bandwidth reclaim equation in GRUB 2023-06-16 22:08:11 +02:00
smp.h sched, smp: Trace smp callback causing an IPI 2023-03-24 11:01:29 +01:00
stats.c
stats.h
stop_task.c
swait.c
topology.c sched/core: Fixed missing rq clock update before calling set_rq_offline() 2023-06-16 22:08:12 +02:00
wait.c sched/wait: Fix a kthread_park race with wait_woken() 2023-06-16 17:08:01 +02:00
wait_bit.c