[PATCH v4 14/25] s390: Query arm guest time

Heiko Carstens hca at linux.ibm.com
Fri Dec 4 04:11:56 PST 2026


On Fri, Nov 27, 2026 at 03:22:17PM +0100, Steffen Eiden wrote:
> Add functions to convert between ARM guest time (LSB0) and s390 host
> time (MSB0) using new ptff function codes.
> 
> Co-developed-by: Nico Boehr <nrb at linux.ibm.com>
> Signed-off-by: Nico Boehr <nrb at linux.ibm.com>
> Co-developed-by: Andreas Grapentin <gra at linux.ibm.com>
> Signed-off-by: Andreas Grapentin <gra at linux.ibm.com>
> Signed-off-by: Steffen Eiden <seiden at linux.ibm.com>
> ---
>  arch/s390/include/asm/timex.h | 53 +++++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 53 insertions(+)

...

> +/*
> + * ptff_qagto() - Query Arm Guest Time Offset
> + *
> + * @physical_time: Arm guest physical time
> + *
> + * Converts the Arm guest physical time into the Arm guest time offset.
> + *
> + * The caller must ensure that this PTFF function is available,
> + * before calling this function. The condition code is discarded.
> + *
> + * Return: Arm guest time offset
> + */
> +static inline u64 ptff_qagto(u64 physical_time)

FWIW, the above looks like proper kernel-doc.

> +/*
> + * ptff_qagpt() - Query Arm Guest Physical Time

...

This too. It might make sense to convert to "/**" to make that
official when applying. Or leave it as it is.

In any case:

Acked-by: Heiko Carstens <hca at linux.ibm.com>



More information about the linux-arm-kernel mailing list