aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorChengming Zhou <zhouchengming@bytedance.com>2022-12-23 18:32:57 +0800
committerIngo Molnar <mingo@kernel.org>2023-01-07 10:48:38 +0100
commit160fb0d83f206b3429fc495864a022110f9e4978 (patch)
tree6293b8f358c5ebf562d72ee7f6d89bc42d72b3f3 /tools/perf/scripts/python/bin
parentsched/core: Micro-optimize ttwu_runnable() (diff)
downloadlinux-160fb0d83f206b3429fc495864a022110f9e4978.tar.gz
linux-160fb0d83f206b3429fc495864a022110f9e4978.zip
sched/core: Reorganize ttwu_do_wakeup() and ttwu_do_activate()
ttwu_do_activate() is used for a complete wakeup, in which we will activate_task() and use ttwu_do_wakeup() to mark the task runnable and perform wakeup-preemption, also call class->task_woken() callback and update the rq->idle_stamp. Since ttwu_runnable() is not a complete wakeup, don't need all those done in ttwu_do_wakeup(), so we can move those to ttwu_do_activate() to simplify ttwu_do_wakeup(), making it only mark the task runnable to be reused in ttwu_runnable() and try_to_wake_up(). This patch should not have any functional changes. Suggested-by: Peter Zijlstra <peterz@infradead.org> Signed-off-by: Chengming Zhou <zhouchengming@bytedance.com> Signed-off-by: Ingo Molnar <mingo@kernel.org> Link: https://lore.kernel.org/r/20221223103257.4962-2-zhouchengming@bytedance.com
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions