Re: [kvm-unit-tests PATCH 4/7] powerpc: add asm/time.h header with delay and get_clock_us/ms

Thomas Huth
2024-03-01T14:05:11Z

On 26/02/2024 10.38, Nicholas Piggin wrote:
> This matches s390x clock and delay APIs, so common test code can start
> using time facilities.
>
> Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
> ---
> lib/powerpc/asm/processor.h | 21 ---------------------
> lib/powerpc/asm/time.h | 30 ++++++++++++++++++++++++++++++
> lib/powerpc/processor.c | 11 +++++++++++
> lib/powerpc/smp.c | 1 +
> lib/ppc64/asm/time.h | 1 +
> powerpc/spapr_vpa.c | 1 +
> powerpc/sprs.c | 1 +
> powerpc/tm.c | 1 +
> 8 files changed, 46 insertions(+), 21 deletions(-)
> create mode 100644 lib/powerpc/asm/time.h
> create mode 100644 lib/ppc64/asm/time.h

Reviewed-by: Thomas Huth <thuth@redhat.com>