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)
commita8933c8d55c37f4d5eb617b4bdb72b8888b88681
tree68767e46155e503ec7ae4a12c9e15999df5fc294
parent501fe299826ead2cfa2046b5c244e36de254ec6a
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