]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
sched/psi: Extract update_triggers side effect
authorDomenico Cerasuolo <cerasuolodomenico@gmail.com>
Thu, 30 Mar 2023 10:54:17 +0000 (12:54 +0200)
committerRoxana Nicolescu <roxana.nicolescu@canonical.com>
Mon, 2 Oct 2023 15:20:36 +0000 (17:20 +0200)
commitc3ccda143df9a7eb3a9f8b37d52de311bcc18676
tree03fbb23298e1e6367ed1661929a1860fb4a3e5b2
parentee233c00157f3bb83eb98c2b6ee516dd82f3fbba
sched/psi: Extract update_triggers side effect

BugLink: https://bugs.launchpad.net/bugs/2037005
[ Upstream commit 4468fcae49f08e88fbbffe05b29496192df89991 ]

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@cmpxchg.org>
Signed-off-by: Domenico Cerasuolo <cerasuolodomenico@gmail.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Link: https://lore.kernel.org/r/20230330105418.77061-4-cerasuolodomenico@gmail.com
Stable-dep-of: aff037078eca ("sched/psi: use kernfs polling functions for PSI trigger polling")
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Roxana Nicolescu <roxana.nicolescu@canonical.com>
kernel/sched/psi.c