]> git.ipfire.org Git - thirdparty/linux.git/commit
sparc64: vdso: Move hardware counter read into header
authorThomas Weißschuh <thomas.weissschuh@linutronix.de>
Wed, 4 Mar 2026 07:49:04 +0000 (08:49 +0100)
committerThomas Gleixner <tglx@kernel.org>
Wed, 11 Mar 2026 09:18:31 +0000 (10:18 +0100)
commit10fdbd9517e833de31911c29c5ff2494d62a5551
treed5898626528aa51f21b48bdf43ffc2f4f94a55a0
parent7b4ee085e760cf77993ceca2b7d6a76ab0870d2c
sparc64: vdso: Move hardware counter read into header

The generic vDSO libraries expected the architecture glue around hardware
counter reading in asm/vdso/gettimeofday.h. To prepare the adoption of the
generic library, move the existing functions there.

While at it, perform some trivial alignment with the generic vDSO library:
* Drop 'notrace', as the functions are __always_inline anyways
* Use the same parameter types
* Use the same function names

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Tested-by: Andreas Larsson <andreas@gaisler.com>
Reviewed-by: Andreas Larsson <andreas@gaisler.com>
Acked-by: Andreas Larsson <andreas@gaisler.com>
Link: https://patch.msgid.link/20260304-vdso-sparc64-generic-2-v6-7-d8eb3b0e1410@linutronix.de
arch/sparc/include/asm/vdso/gettimeofday.h [new file with mode: 0644]
arch/sparc/vdso/vclock_gettime.c