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

Thomas Huth thuth at redhat.com
Sat Mar 2 01:05:03 AEDT 2024


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 at 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 at redhat.com>



More information about the Linuxppc-dev mailing list