]> www.infradead.org Git - users/willy/xarray.git/commit
sched/psi: Change update_triggers() to a 'void' function
authorYang Yang <yang.yang29@zte.com.cn>
Mon, 9 Oct 2023 12:24:28 +0000 (20:24 +0800)
committerIngo Molnar <mingo@kernel.org>
Mon, 9 Oct 2023 12:54:50 +0000 (14:54 +0200)
commite03dc9fa0663bc303383170e961561462ff00c93
treeffb14a99d4b8f078cb41234b88a969cc7d03665b
parent5b77261c5510f1e6f4d359e97dd3e39ee7259c3d
sched/psi: Change update_triggers() to a 'void' function

Update_triggers() always returns now + group->rtpoll_min_period, and the
return value is only used by psi_rtpoll_work(), so change update_triggers()
to a void function, let group->rtpoll_next_update = now +
group->rtpoll_min_period directly.

This will avoid unnecessary function return value passing & simplifies
the function.

[ mingo: Updated changelog ]

Suggested-by: Suren Baghdasaryan <surenb@google.com>
Signed-off-by: Yang Yang <yang.yang29@zte.com.cn>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/202310092024289721617@zte.com.cn
kernel/sched/psi.c