diff options
author | Chen Yu <yu.c.chen@intel.com> | 2020-04-21 13:50:43 +0300 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2020-04-30 21:14:40 +0300 |
commit | 457d1f465778ccb5f14f7d7a62245e41d12a3804 (patch) | |
tree | 8a5bbabd38fca2780de66434f39ee024982ab070 /tools/perf/scripts/python | |
parent | d91cecc156620ec75d94c55369509c807c3d07e6 (diff) | |
download | linux-457d1f465778ccb5f14f7d7a62245e41d12a3804.tar.xz |
sched: Extract the task putting code from pick_next_task()
Introduce a new function put_prev_task_balance() to do the balance
when necessary, and then put previous task back to the run queue.
This function is extracted from pick_next_task() to prepare for
future usage by other type of task picking logic.
No functional change.
Suggested-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Chen Yu <yu.c.chen@intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Valentin Schneider <valentin.schneider@arm.com>
Reviewed-by: Vincent Guittot <vincent.guittot@linaro.org>
Reviewed-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Link: https://lkml.kernel.org/r/5a99860cf66293db58a397d6248bcb2eee326776.1587464698.git.yu.c.chen@intel.com
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions