sched/deadline: Add replenish_dl_new_period helper
authorShang XiaoJing <shangxiaojing@huawei.com>
Fri, 26 Aug 2022 10:00:37 +0000 (18:00 +0800)
committerPeter Zijlstra <peterz@infradead.org>
Thu, 1 Sep 2022 09:19:54 +0000 (11:19 +0200)
commit96458e7f7dc5ad14bd7577cbf1638e1504ad79dd
tree6ff8263bac2af987f82ffa956ab7a2368e64654a
parent973bee493a1f75c6c0752a74fb9396cbc34f026e
sched/deadline: Add replenish_dl_new_period helper

Wrap repeated code in helper function replenish_dl_new_period, which set
the deadline and runtime of input dl_se based on pi_of(dl_se). Note that
setup_new_dl_entity originally set the deadline and runtime base on
dl_se, which should equals to pi_of(dl_se) for non-boosted task.

Signed-off-by: Shang XiaoJing <shangxiaojing@huawei.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Daniel Bristot de Oliveira <bristot@kernel.org>
Link: https://lore.kernel.org/r/20220826100037.12146-1-shangxiaojing@huawei.com
kernel/sched/deadline.c