]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/pseries: Add wait interval counter definitions to struct lppaca
authorNicholas Piggin <npiggin@gmail.com>
Fri, 2 Sep 2022 08:53:13 +0000 (18:53 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 4 Sep 2022 12:39:59 +0000 (22:39 +1000)
commitcb638b2bcf89570a473dd150d4ab0066567d5b17
tree68767e46155e503ec7ae4a12c9e15999df5fc294
parentd05d827054c5baf9e276c4041617d9585f6d1618
powerpc/pseries: Add wait interval counter definitions to struct lppaca

The hypervisor exposes accumulated partition scheduling interval times
in the VPA (lppaca). These can be used to implement a simple stolen time
in the guest without complex and costly dtl scanning.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Reviewed-by: Fabiano Rosas <farosas@linux.ibm.com>
Link: https://lore.kernel.org/r/20220902085316.2071519-2-npiggin@gmail.com
arch/powerpc/include/asm/lppaca.h