linux/include/vdso/auxclock.h
Thomas Weißschuh 9b7fc3f145 vdso: Introduce aux_clock_resolution_ns()
Move the constant resolution to a shared header,
so the vDSO can use it and return it without going through a syscall.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/all/20250701-vdso-auxclock-v1-10-df7d9f87b9b8@linutronix.de
2025-07-18 13:45:32 +02:00

13 lines
253 B
C

/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _VDSO_AUXCLOCK_H
#define _VDSO_AUXCLOCK_H
#include <uapi/linux/time.h>
#include <uapi/linux/types.h>
static __always_inline u64 aux_clock_resolution_ns(void)
{
return 1;
}
#endif /* _VDSO_AUXCLOCK_H */