Skip to contentSkip to conversation

riscv: Fixup CONFIG_GENERIC_TIME_VSYSCALL

PATCH In review [email protected] 3 participants 3 messages Jan 2, 2021 – Jan 13, 2021

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

PATCH 1/1 riscv: Fixup CONFIG_GENERIC_TIME_VSYSCALL

From: Guo Ren <[email protected]>

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.

Cc Atish Patra <[email protected]>
Cc Palmer Dabbelt <[email protected]>
Cc Vincent Chen <[email protected]>
---
 arch/riscv/include/asm/vdso.h | 2 +-
 arch/riscv/kernel/vdso.c      | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
arch/riscv/include/asm/vdso.h +1 -1
index 8454f74..1453a2f 100644
@@ -10,7 +10,7 @@
 
 #include <linux/types.h>
 
-#ifndef GENERIC_TIME_VSYSCALL
+#ifndef CONFIG_GENERIC_TIME_VSYSCALL
 struct vdso_data {
 };
 #endif
arch/riscv/kernel/vdso.c +1 -1
index 6782042..3f1d35e 100644
@@ -12,7 +12,7 @@
 #include <linux/binfmts.h>
 #include <linux/err.h>
 #include <asm/page.h>
-#ifdef GENERIC_TIME_VSYSCALL
+#ifdef CONFIG_GENERIC_TIME_VSYSCALL
 #include <vdso/datapage.h>
 #else
 #include <asm/vdso.h>
Signature · 7 lines
2.7.4


_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv
Reviewed-by on v1 1/1
#1 lore raw
Quoted 6 lines · On Sat, Jan 2, 2021 at 3:26 PM <[email protected]> wrote:

From: Guo Ren <[email protected]>

The patch fix commit: ad5d112 ("riscv: use vDSO common flow to reduce the latency of the time-related functions").

Quoted 7 lines

The GENERIC_TIME_VSYSCALL should be CONFIG_GENERIC_TIME_VSYSCALL or vgettimeofday won't work.

Cc Atish Patra <[email protected]>
Cc Palmer Dabbelt <[email protected]>
Cc Vincent Chen <[email protected]>

_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv

#2 lore raw
Quoted 10 lines · On Sun, 03 Jan 2021 02:11:35 PST (-0800), [email protected] wrote:
Quoted 9 lines · On Sat, Jan 2, 2021 at 3:26 PM <[email protected]> wrote:

From: Guo Ren <[email protected]>

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.

Quoted 6 lines
Quoted 4 lines
Cc Atish Patra <[email protected]>
Cc Palmer Dabbelt <[email protected]>
Cc Vincent Chen <[email protected]>

Thanks, this is on fixes.

_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv