rackmeter: Use vtime aware kcpustat accessor
authorFrederic Weisbecker <frederic@kernel.org>
Thu, 21 Nov 2019 02:44:30 +0000 (03:44 +0100)
committerIngo Molnar <mingo@kernel.org>
Thu, 21 Nov 2019 06:59:00 +0000 (07:59 +0100)
commit8392853e964c025b0616bd54c0cdf9cbc3c9a769
tree9730d88138caf16018b9978320acd0d8a041067c
parent8688f2fb671b2ed59b1b16083136b6edc3750435
rackmeter: Use vtime aware kcpustat accessor

Now that we have a vtime safe kcpustat accessor, use it to fetch
CPUTIME_NICE and fix frozen kcpustat values on nohz_full CPUs.

Reported-by: Yauheni Kaliuta <yauheni.kaliuta@redhat.com>
Signed-off-by: Frederic Weisbecker <frederic@kernel.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Wanpeng Li <wanpengli@tencent.com>
Link: https://lkml.kernel.org/r/20191121024430.19938-7-frederic@kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
drivers/macintosh/rack-meter.c