Files
android_kernel_xiaomi_sm8450/arch/powerpc/kernel
Nicholas Piggin 3d3a6021dd powerpc/pseries: lparcfg calculate PURR on demand
For SPLPAR, lparcfg provides a sum of PURR registers for all CPUs.
Currently this is done by reading PURR in context switch and timer
interrupt, and storing that into a per-CPU variable. These are summed
to provide the value.

This does not work with all timer schemes (e.g., NO_HZ_FULL), and it
is sub-optimal for performance because it reads the PURR register on
every context switch, although that's been difficult to distinguish
from noise in the contxt_switch microbenchmark.

This patch implements the sum by calling a function on each CPU, to
read and add PURR values of each CPU.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2018-06-03 20:40:27 +10:00
..
2018-04-01 00:47:50 +11:00
2018-01-15 09:35:26 +01:00
2018-05-18 16:05:15 +10:00
2016-08-07 23:50:09 -04:00
2016-08-07 23:50:09 -04:00
2018-03-31 09:09:36 +11:00
2017-12-11 13:03:35 +11:00
2018-03-31 09:09:36 +11:00
2015-04-07 17:15:13 +10:00
2018-05-25 12:04:46 +10:00