sched: Add update_current_exec_runtime helper

Wrap repeated code in helper function update_current_exec_runtime for
update the exec time of the current.

Signed-off-by: Shang XiaoJing <shangxiaojing@huawei.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20220824082856.15674-1-shangxiaojing@huawei.com
This commit is contained in:
Shang XiaoJing 2022-08-24 16:28:56 +08:00 • committed by Peter Zijlstra
commit 5531ecffa4
4 changed files with 16 additions and 17 deletions