Re: [PATCH v4 3/4] sched/psi: extract update_triggers side effect

From: Johannes Weiner
Date: Wed Mar 29 2023 - 11:56:34 EST


On Wed, Mar 29, 2023 at 05:33:26PM +0200, Domenico Cerasuolo wrote:
> This change moves update_total flag out of update_triggers function,
> currently called only in psi_poll_work.
> In the next patch, update_triggers will be called also in psi_avgs_work,
> but the total update information is specific to psi_poll_work.
> Returning update_total value to the caller let us avoid differentiating
> the implementation of update_triggers for different aggregators.
>
> Suggested-by: Johannes Weiner <hannes@xxxxxxxxxxx>
> Signed-off-by: Domenico Cerasuolo <cerasuolodomenico@xxxxxxxxx>

Acked-by: Johannes Weiner <hannes@xxxxxxxxxxx>