Commit 0aa2ec8a authored by Guo Ren's avatar Guo Ren Committed by Palmer Dabbelt

riscv: Fixup CONFIG_GENERIC_TIME_VSYSCALL

The patch fix commit: ad5d1122 ("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: default avatarGuo Ren <guoren@linux.alibaba.com>
Reviewed-by: default avatarPekka Enberg <penberg@kernel.org>
Fixes: ad5d1122 ("riscv: use vDSO common flow to reduce the latency of the time-related functions")
Cc: stable@vger.kernel.org
Signed-off-by: default avatarPalmer Dabbelt <palmerdabbelt@google.com>
parent 80709af7
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
#include <linux/types.h> #include <linux/types.h>
#ifndef GENERIC_TIME_VSYSCALL #ifndef CONFIG_GENERIC_TIME_VSYSCALL
struct vdso_data { struct vdso_data {
}; };
#endif #endif
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
#include <linux/binfmts.h> #include <linux/binfmts.h>
#include <linux/err.h> #include <linux/err.h>
#include <asm/page.h> #include <asm/page.h>
#ifdef GENERIC_TIME_VSYSCALL #ifdef CONFIG_GENERIC_TIME_VSYSCALL
#include <vdso/datapage.h> #include <vdso/datapage.h>
#else #else
#include <asm/vdso.h> #include <asm/vdso.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment