Skip to content

Commit 0aa2ec8

Browse files
guoren83palmer-dabbelt
authored andcommitted
riscv: Fixup CONFIG_GENERIC_TIME_VSYSCALL
The patch fix commit: ad5d112 ("riscv: use vDSO common flow to reduce the latency of the time-related functions"). The GENERIC_TIME_VSYSCALL should be CONFIG_GENERIC_TIME_VSYSCALL or vgettimeofday won't work. Signed-off-by: Guo Ren <[email protected]> Reviewed-by: Pekka Enberg <[email protected]> Fixes: ad5d112 ("riscv: use vDSO common flow to reduce the latency of the time-related functions") Cc: [email protected] Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent 80709af commit 0aa2ec8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

arch/riscv/include/asm/vdso.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
#include <linux/types.h>
1212

13-
#ifndef GENERIC_TIME_VSYSCALL
13+
#ifndef CONFIG_GENERIC_TIME_VSYSCALL
1414
struct vdso_data {
1515
};
1616
#endif

arch/riscv/kernel/vdso.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#include <linux/binfmts.h>
1313
#include <linux/err.h>
1414
#include <asm/page.h>
15-
#ifdef GENERIC_TIME_VSYSCALL
15+
#ifdef CONFIG_GENERIC_TIME_VSYSCALL
1616
#include <vdso/datapage.h>
1717
#else
1818
#include <asm/vdso.h>

0 commit comments

Comments
 (0)