Skip to content

Commit 91d2a1a

Browse files
t-8chThomas Gleixner
authored andcommitted
riscv: vdso: Drop CONFIG_GENERIC_TIME_VSYSCALL guard around syscall fallbacks
The syscall definitions can be built just fine for 32-bit systems. Also the guard does not cover __arch_get_hw_counter() which is always used together with those system call fallbacks. Also this header is unused when no vDSO is built anyways. Drop the ifdeffery. The logic will be simpler to understand. Furthermore this prepares the complete removal of CONFIG_GENERIC_TIME_VSYSCALL. Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de> Signed-off-by: Thomas Gleixner <tglx@kernel.org> Link: https://patch.msgid.link/20260519-vdso-generic_time_vsyscal-v1-1-5c2a5905d5f5@linutronix.de
1 parent e43ffb6 commit 91d2a1a

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

arch/riscv/include/asm/vdso/gettimeofday.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,6 @@
99
#include <asm/csr.h>
1010
#include <uapi/linux/time.h>
1111

12-
/*
13-
* 32-bit land is lacking generic time vsyscalls as well as the legacy 32-bit
14-
* time syscalls like gettimeofday. Skip these definitions since on 32-bit.
15-
*/
16-
#ifdef CONFIG_GENERIC_TIME_VSYSCALL
17-
1812
#define VDSO_HAS_CLOCK_GETRES 1
1913

2014
static __always_inline
@@ -66,8 +60,6 @@ int clock_getres_fallback(clockid_t _clkid, struct __kernel_timespec *_ts)
6660
return ret;
6761
}
6862

69-
#endif /* CONFIG_GENERIC_TIME_VSYSCALL */
70-
7163
static __always_inline u64 __arch_get_hw_counter(s32 clock_mode,
7264
const struct vdso_time_data *vd)
7365
{

0 commit comments

Comments
 (0)