diff options
| author | Chengming Zhou <[email protected]> | 2022-12-23 18:32:57 +0800 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2023-01-07 10:48:38 +0100 |
| commit | 160fb0d83f206b3429fc495864a022110f9e4978 (patch) | |
| tree | 6293b8f358c5ebf562d72ee7f6d89bc42d72b3f3 /tools/perf/scripts/python/task-analyzer.py | |
| parent | efe09385864f3441c71711f91e621992f9423c01 (diff) | |
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 <[email protected]>
Signed-off-by: Chengming Zhou <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions