FROMLIST: psi: split update_stats into parts
authorSuren Baghdasaryan <surenb@google.com>
Wed, 6 Mar 2019 17:52:23 +0000 (09:52 -0800)
committerwangwang <wangwang1@lenovo.com>
Wed, 13 Nov 2019 02:38:09 +0000 (10:38 +0800)
commit8f13f352cf662853fdfe5a5c08764d14782d1dac
tree72aeb005bf5196d3f2a42970fe4ffa5a9a562643
parentb7e7fd4410fc04f9217740d6777c3eaed3e5b810
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