sched: Add update_current_exec_runtime helper
authorShang XiaoJing <shangxiaojing@huawei.com>
Wed, 24 Aug 2022 08:28:56 +0000 (16:28 +0800)
committerPeter Zijlstra <peterz@infradead.org>
Fri, 26 Aug 2022 22:05:35 +0000 (00:05 +0200)
commit5531ecffa4b923bc7739e9ea73c552d80af602dc
tree5fa795ee0847e07754e96043ee214525dc7c551c
parente4fe074d6c359c19b74564fa1364fe48343cfa5d
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
kernel/sched/deadline.c
kernel/sched/rt.c
kernel/sched/sched.h
kernel/sched/stop_task.c