FROMLIST: psi: split update_stats into parts
authorSuren Baghdasaryan <surenb@google.com>
Wed, 6 Mar 2019 17:52:23 +0000 (09:52 -0800)
committerlingsen1 <lingsen1@lenovo.com>
Sun, 7 Feb 2021 09:37:07 +0000 (17:37 +0800)
commit45cc6c8125b5c8830e79752be910942a2c3419ad
treebc9c8448b859e5183511ad885b68e6af03009f4f
parentc8e91aa937fbbbc3b2369df06dc34f0a4a7238d5
FROMLIST: psi: split update_stats into parts

Split update_stats into collect_percpu_times and update_averages for
collect_percpu_times to be reused later inside psi monitor.

Signed-off-by: Suren Baghdasaryan <surenb@google.com>
(not upstream yet, latest version published at: https://lore.kernel.org/patchwork/patch/1052419/)

Bug: 127712811
Bug: 129157727
Test: lmkd in PSI mode
Change-Id: Ic5dca1924a3f8997b49b5d16289f53bcc43b88fa
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
kernel/sched/psi.c