From: "tip-bot2 for Nam Cao" <tip-bot2@linutronix.de>
To: linux-tip-commits@vger.kernel.org
Cc: Nam Cao <namcao@linutronix.de>,
Thomas Gleixner <tglx@linutronix.de>,
Heiko Carstens <hca@linux.ibm.com>,
x86@kernel.org, linux-kernel@vger.kernel.org
Subject: [tip: timers/vdso] vdso: Rename struct arch_vdso_data to arch_vdso_time_data
Date: Sat, 02 Nov 2024 11:50:10 -0000 [thread overview]
Message-ID: <173054821047.3137.13007406079964356787.tip-bot2@tip-bot2> (raw)
In-Reply-To: <20241010-vdso-generic-base-v1-28-b64f0842d512@linutronix.de>
The following commit has been merged into the timers/vdso branch of tip:
Commit-ID: a812eee0b68645e2916d4a4399280fe5471cac67
Gitweb: https://git.kernel.org/tip/a812eee0b68645e2916d4a4399280fe5471cac67
Author: Nam Cao <namcao@linutronix.de>
AuthorDate: Thu, 10 Oct 2024 09:01:30 +02:00
Committer: Thomas Gleixner <tglx@linutronix.de>
CommitterDate: Sat, 02 Nov 2024 12:37:36 +01:00
vdso: Rename struct arch_vdso_data to arch_vdso_time_data
The struct arch_vdso_data is only about vdso time data. So rename it to
arch_vdso_time_data to make it obvious.
Non time-related data will be migrated out of these structs soon.
Signed-off-by: Nam Cao <namcao@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Heiko Carstens <hca@linux.ibm.com> # s390
Link: https://lore.kernel.org/all/20241010-vdso-generic-base-v1-28-b64f0842d512@linutronix.de
---
arch/Kconfig | 2 +-
arch/riscv/Kconfig | 2 +-
arch/riscv/include/asm/vdso/data.h | 17 -----------------
arch/riscv/include/asm/vdso/time_data.h | 17 +++++++++++++++++
arch/riscv/kernel/sys_hwprobe.c | 2 +-
arch/riscv/kernel/vdso/hwprobe.c | 4 ++--
arch/s390/Kconfig | 2 +-
arch/s390/include/asm/vdso/data.h | 12 ------------
arch/s390/include/asm/vdso/time_data.h | 12 ++++++++++++
include/vdso/datapage.h | 8 ++++----
10 files changed, 39 insertions(+), 39 deletions(-)
delete mode 100644 arch/riscv/include/asm/vdso/data.h
create mode 100644 arch/riscv/include/asm/vdso/time_data.h
delete mode 100644 arch/s390/include/asm/vdso/data.h
create mode 100644 arch/s390/include/asm/vdso/time_data.h
diff --git a/arch/Kconfig b/arch/Kconfig
index 8af374e..7f1ec32 100644
--- a/arch/Kconfig
+++ b/arch/Kconfig
@@ -1530,7 +1530,7 @@ config HAVE_SPARSE_SYSCALL_NR
entries at 4000, 5000 and 6000 locations. This option turns on syscall
related optimizations for a given architecture.
-config ARCH_HAS_VDSO_DATA
+config ARCH_HAS_VDSO_TIME_DATA
bool
config HAVE_STATIC_CALL
diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig
index 6254594..c278280 100644
--- a/arch/riscv/Kconfig
+++ b/arch/riscv/Kconfig
@@ -50,7 +50,7 @@ config RISCV
select ARCH_HAS_SYSCALL_WRAPPER
select ARCH_HAS_TICK_BROADCAST if GENERIC_CLOCKEVENTS_BROADCAST
select ARCH_HAS_UBSAN
- select ARCH_HAS_VDSO_DATA
+ select ARCH_HAS_VDSO_TIME_DATA
select ARCH_KEEP_MEMBLOCK if ACPI
select ARCH_MHP_MEMMAP_ON_MEMORY_ENABLE if 64BIT && MMU
select ARCH_OPTIONAL_KERNEL_RWX if ARCH_HAS_STRICT_KERNEL_RWX
diff --git a/arch/riscv/include/asm/vdso/data.h b/arch/riscv/include/asm/vdso/data.h
deleted file mode 100644
index dc2f76f..0000000
--- a/arch/riscv/include/asm/vdso/data.h
+++ /dev/null
@@ -1,17 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 */
-#ifndef __RISCV_ASM_VDSO_DATA_H
-#define __RISCV_ASM_VDSO_DATA_H
-
-#include <linux/types.h>
-#include <vdso/datapage.h>
-#include <asm/hwprobe.h>
-
-struct arch_vdso_data {
- /* Stash static answers to the hwprobe queries when all CPUs are selected. */
- __u64 all_cpu_hwprobe_values[RISCV_HWPROBE_MAX_KEY + 1];
-
- /* Boolean indicating all CPUs have the same static hwprobe values. */
- __u8 homogeneous_cpus;
-};
-
-#endif /* __RISCV_ASM_VDSO_DATA_H */
diff --git a/arch/riscv/include/asm/vdso/time_data.h b/arch/riscv/include/asm/vdso/time_data.h
new file mode 100644
index 0000000..dfa6522
--- /dev/null
+++ b/arch/riscv/include/asm/vdso/time_data.h
@@ -0,0 +1,17 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#ifndef __RISCV_ASM_VDSO_TIME_DATA_H
+#define __RISCV_ASM_VDSO_TIME_DATA_H
+
+#include <linux/types.h>
+#include <vdso/datapage.h>
+#include <asm/hwprobe.h>
+
+struct arch_vdso_time_data {
+ /* Stash static answers to the hwprobe queries when all CPUs are selected. */
+ __u64 all_cpu_hwprobe_values[RISCV_HWPROBE_MAX_KEY + 1];
+
+ /* Boolean indicating all CPUs have the same static hwprobe values. */
+ __u8 homogeneous_cpus;
+};
+
+#endif /* __RISCV_ASM_VDSO_TIME_DATA_H */
diff --git a/arch/riscv/kernel/sys_hwprobe.c b/arch/riscv/kernel/sys_hwprobe.c
index cea0ca2..711a31f 100644
--- a/arch/riscv/kernel/sys_hwprobe.c
+++ b/arch/riscv/kernel/sys_hwprobe.c
@@ -402,7 +402,7 @@ static int do_riscv_hwprobe(struct riscv_hwprobe __user *pairs,
static int __init init_hwprobe_vdso_data(void)
{
struct vdso_data *vd = __arch_get_k_vdso_data();
- struct arch_vdso_data *avd = &vd->arch_data;
+ struct arch_vdso_time_data *avd = &vd->arch_data;
u64 id_bitsmash = 0;
struct riscv_hwprobe pair;
int key;
diff --git a/arch/riscv/kernel/vdso/hwprobe.c b/arch/riscv/kernel/vdso/hwprobe.c
index 1e926e4..a158c02 100644
--- a/arch/riscv/kernel/vdso/hwprobe.c
+++ b/arch/riscv/kernel/vdso/hwprobe.c
@@ -17,7 +17,7 @@ static int riscv_vdso_get_values(struct riscv_hwprobe *pairs, size_t pair_count,
unsigned int flags)
{
const struct vdso_data *vd = __arch_get_vdso_data();
- const struct arch_vdso_data *avd = &vd->arch_data;
+ const struct arch_vdso_time_data *avd = &vd->arch_data;
bool all_cpus = !cpusetsize && !cpus;
struct riscv_hwprobe *p = pairs;
struct riscv_hwprobe *end = pairs + pair_count;
@@ -52,7 +52,7 @@ static int riscv_vdso_get_cpus(struct riscv_hwprobe *pairs, size_t pair_count,
unsigned int flags)
{
const struct vdso_data *vd = __arch_get_vdso_data();
- const struct arch_vdso_data *avd = &vd->arch_data;
+ const struct arch_vdso_time_data *avd = &vd->arch_data;
struct riscv_hwprobe *p = pairs;
struct riscv_hwprobe *end = pairs + pair_count;
unsigned char *c = (unsigned char *)cpus;
diff --git a/arch/s390/Kconfig b/arch/s390/Kconfig
index d339fe4..8cdd835 100644
--- a/arch/s390/Kconfig
+++ b/arch/s390/Kconfig
@@ -88,7 +88,7 @@ config S390
select ARCH_HAS_STRICT_MODULE_RWX
select ARCH_HAS_SYSCALL_WRAPPER
select ARCH_HAS_UBSAN
- select ARCH_HAS_VDSO_DATA
+ select ARCH_HAS_VDSO_TIME_DATA
select ARCH_HAVE_NMI_SAFE_CMPXCHG
select ARCH_INLINE_READ_LOCK
select ARCH_INLINE_READ_LOCK_BH
diff --git a/arch/s390/include/asm/vdso/data.h b/arch/s390/include/asm/vdso/data.h
deleted file mode 100644
index 0e2b40e..0000000
--- a/arch/s390/include/asm/vdso/data.h
+++ /dev/null
@@ -1,12 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 */
-#ifndef __S390_ASM_VDSO_DATA_H
-#define __S390_ASM_VDSO_DATA_H
-
-#include <linux/types.h>
-
-struct arch_vdso_data {
- __s64 tod_steering_delta;
- __u64 tod_steering_end;
-};
-
-#endif /* __S390_ASM_VDSO_DATA_H */
diff --git a/arch/s390/include/asm/vdso/time_data.h b/arch/s390/include/asm/vdso/time_data.h
new file mode 100644
index 0000000..8a08752
--- /dev/null
+++ b/arch/s390/include/asm/vdso/time_data.h
@@ -0,0 +1,12 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#ifndef __S390_ASM_VDSO_TIME_DATA_H
+#define __S390_ASM_VDSO_TIME_DATA_H
+
+#include <linux/types.h>
+
+struct arch_vdso_time_data {
+ __s64 tod_steering_delta;
+ __u64 tod_steering_end;
+};
+
+#endif /* __S390_ASM_VDSO_TIME_DATA_H */
diff --git a/include/vdso/datapage.h b/include/vdso/datapage.h
index b85f24c..d967baa 100644
--- a/include/vdso/datapage.h
+++ b/include/vdso/datapage.h
@@ -19,10 +19,10 @@
#include <vdso/time32.h>
#include <vdso/time64.h>
-#ifdef CONFIG_ARCH_HAS_VDSO_DATA
-#include <asm/vdso/data.h>
+#ifdef CONFIG_ARCH_HAS_VDSO_TIME_DATA
+#include <asm/vdso/time_data.h>
#else
-struct arch_vdso_data {};
+struct arch_vdso_time_data {};
#endif
#define VDSO_BASES (CLOCK_TAI + 1)
@@ -114,7 +114,7 @@ struct vdso_data {
u32 hrtimer_res;
u32 __unused;
- struct arch_vdso_data arch_data;
+ struct arch_vdso_time_data arch_data;
};
/**
next prev parent reply other threads:[~2024-11-02 11:50 UTC|newest]
Thread overview: 93+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-10 7:01 [PATCH 00/28] vdso: Preparations for generic data storage Thomas Weißschuh
2024-10-10 7:01 ` [PATCH 01/28] csky/vdso: Remove gettimeofday() and friends from VDSO Thomas Weißschuh
2024-11-02 10:10 ` [tip: timers/vdso] " tip-bot2 for Thomas Weißschuh
2024-11-02 11:50 ` tip-bot2 for Thomas Weißschuh
2024-10-10 7:01 ` [PATCH 02/28] csky/vdso: Remove arch_vma_name() Thomas Weißschuh
2024-11-02 10:10 ` [tip: timers/vdso] " tip-bot2 for Thomas Weißschuh
2024-11-02 11:50 ` tip-bot2 for Thomas Weißschuh
2024-10-10 7:01 ` [PATCH 03/28] s390/vdso: Drop LBASE_VDSO Thomas Weißschuh
2024-10-10 7:54 ` Heiko Carstens
2024-11-02 10:10 ` [tip: timers/vdso] " tip-bot2 for Thomas Weißschuh
2024-11-02 11:50 ` tip-bot2 for Thomas Weißschuh
2024-10-10 7:01 ` [PATCH 04/28] arm64: vdso: " Thomas Weißschuh
2024-10-28 18:01 ` Will Deacon
2024-11-02 10:10 ` [tip: timers/vdso] " tip-bot2 for Thomas Weißschuh
2024-11-02 11:50 ` tip-bot2 for Thomas Weißschuh
2024-10-10 7:01 ` [PATCH 05/28] arm64: vdso: Use only one single vvar mapping Thomas Weißschuh
2024-10-28 18:39 ` Will Deacon
2024-11-02 10:10 ` [tip: timers/vdso] " tip-bot2 for Thomas Weißschuh
2024-11-02 11:50 ` tip-bot2 for Thomas Weißschuh
2024-10-10 7:01 ` [PATCH 06/28] riscv: " Thomas Weißschuh
2024-11-02 10:10 ` [tip: timers/vdso] " tip-bot2 for Thomas Weißschuh
2024-11-02 11:50 ` tip-bot2 for Thomas Weißschuh
2024-10-10 7:01 ` [PATCH 07/28] arm: vdso: Remove assembly for datapage access Thomas Weißschuh
2024-11-02 10:10 ` [tip: timers/vdso] ARM: " tip-bot2 for Thomas Weißschuh
2024-11-02 11:50 ` tip-bot2 for Thomas Weißschuh
2024-10-10 7:01 ` [PATCH 08/28] LoongArch: vDSO: Use vdso/datapage.h to access vDSO data Thomas Weißschuh
2024-11-02 10:10 ` [tip: timers/vdso] " tip-bot2 for Thomas Weißschuh
2024-11-02 11:50 ` tip-bot2 for Thomas Weißschuh
2024-10-10 7:01 ` [PATCH 09/28] MIPS: vdso: Avoid name conflict around "vdso_data" Thomas Weißschuh
2024-11-02 10:10 ` [tip: timers/vdso] " tip-bot2 for Thomas Weißschuh
2024-11-02 11:50 ` tip-bot2 for Thomas Weißschuh
2024-10-10 7:01 ` [PATCH 10/28] x86/mm/mmap: Remove arch_vma_name() Thomas Weißschuh
2024-11-02 10:10 ` [tip: timers/vdso] " tip-bot2 for Thomas Weißschuh
2024-11-02 11:50 ` tip-bot2 for Thomas Weißschuh
2024-10-10 7:01 ` [PATCH 11/28] x86: vdso: Use __arch_get_vdso_data() to access vdso data Thomas Weißschuh
2024-11-02 10:10 ` [tip: timers/vdso] x86/vdso: " tip-bot2 for Thomas Weißschuh
2024-11-02 11:50 ` tip-bot2 for Thomas Weißschuh
2024-10-10 7:01 ` [PATCH 12/28] x86: vdso: Place vdso_data at beginning of vvar page Thomas Weißschuh
2024-11-02 10:10 ` [tip: timers/vdso] x86/vdso: " tip-bot2 for Thomas Weißschuh
2024-11-02 11:50 ` tip-bot2 for Thomas Weißschuh
2024-10-10 7:01 ` [PATCH 13/28] x86: vdso: Access rng data from kernel without vvar Thomas Weißschuh
2024-11-02 10:10 ` [tip: timers/vdso] x86/vdso: " tip-bot2 for Thomas Weißschuh
2024-11-02 11:50 ` tip-bot2 for Thomas Weißschuh
2024-10-10 7:01 ` [PATCH 14/28] x86: vdso: Allocate vvar page from C code Thomas Weißschuh
2024-11-02 10:10 ` [tip: timers/vdso] x86/vdso: " tip-bot2 for Thomas Weißschuh
2024-11-02 11:50 ` tip-bot2 for Thomas Weißschuh
2024-10-10 7:01 ` [PATCH 15/28] x86: vdso: Access timens vdso data without vvar.h Thomas Weißschuh
2024-11-02 10:10 ` [tip: timers/vdso] x86/vdso: " tip-bot2 for Thomas Weißschuh
2024-11-02 11:50 ` tip-bot2 for Thomas Weißschuh
2024-10-10 7:01 ` [PATCH 16/28] x86: vdso: Access rng " Thomas Weißschuh
2024-11-02 10:10 ` [tip: timers/vdso] x86/vdso: " tip-bot2 for Thomas Weißschuh
2024-11-02 11:50 ` tip-bot2 for Thomas Weißschuh
2024-10-10 7:01 ` [PATCH 17/28] x86: vdso: Move the rng offset to vsyscall.h Thomas Weißschuh
2024-11-02 10:10 ` [tip: timers/vdso] x86/vdso: " tip-bot2 for Thomas Weißschuh
2024-11-02 11:50 ` tip-bot2 for Thomas Weißschuh
2024-10-10 7:01 ` [PATCH 18/28] x86: vdso: Access vdso data without vvar.h Thomas Weißschuh
2024-11-02 10:10 ` [tip: timers/vdso] x86/vdso: " tip-bot2 for Thomas Weißschuh
2024-11-02 11:50 ` tip-bot2 for Thomas Weißschuh
2024-10-10 7:01 ` [PATCH 19/28] x86: vdso: Delete vvar.h Thomas Weißschuh
2024-11-02 10:10 ` [tip: timers/vdso] x86/vdso: " tip-bot2 for Thomas Weißschuh
2024-11-02 11:50 ` tip-bot2 for Thomas Weißschuh
2024-10-10 7:01 ` [PATCH 20/28] x86: vdso: Split virtual clock pages into dedicated mapping Thomas Weißschuh
2024-11-02 10:10 ` [tip: timers/vdso] x86/vdso: " tip-bot2 for Thomas Weißschuh
2024-11-02 11:50 ` tip-bot2 for Thomas Weißschuh
2024-10-10 7:01 ` [PATCH 21/28] powerpc: vdso: Remove offset comment from 32bit vdso_arch_data Thomas Weißschuh
2024-11-02 10:10 ` [tip: timers/vdso] powerpc/vdso: " tip-bot2 for Thomas Weißschuh
2024-11-02 11:50 ` tip-bot2 for Thomas Weißschuh
2024-10-10 7:01 ` [PATCH 22/28] powerpc: procfs: Propagate error of remap_pfn_range() Thomas Weißschuh
2024-11-02 10:10 ` [tip: timers/vdso] powerpc/procfs: " tip-bot2 for Thomas Weißschuh
2024-11-02 11:50 ` tip-bot2 for Thomas Weißschuh
2024-10-10 7:01 ` [PATCH 23/28] powerpc/pseries/lparcfg: Fix printing of system_active_processors Thomas Weißschuh
2024-11-02 10:10 ` [tip: timers/vdso] " tip-bot2 for Thomas Weißschuh
2024-11-02 11:50 ` tip-bot2 for Thomas Weißschuh
2024-10-10 7:01 ` [PATCH 24/28] powerpc/pseries/lparcfg: Use num_possible_cpus() for potential processors Thomas Weißschuh
2024-11-02 10:10 ` [tip: timers/vdso] " tip-bot2 for Thomas Weißschuh
2024-11-02 11:50 ` tip-bot2 for Thomas Weißschuh
2024-10-10 7:01 ` [PATCH 25/28] powerpc: Add kconfig option for the systemcfg page Thomas Weißschuh
2024-11-02 10:10 ` [tip: timers/vdso] " tip-bot2 for Thomas Weißschuh
2024-11-02 11:50 ` tip-bot2 for Thomas Weißschuh
2024-10-10 7:01 ` [PATCH 26/28] powerpc: Split systemcfg data out of vdso data page Thomas Weißschuh
2024-11-02 10:10 ` [tip: timers/vdso] " tip-bot2 for Thomas Weißschuh
2024-11-02 11:50 ` tip-bot2 for Thomas Weißschuh
2024-10-10 7:01 ` [PATCH 27/28] powerpc: Split systemcfg struct definitions out from vdso Thomas Weißschuh
2024-11-02 10:10 ` [tip: timers/vdso] " tip-bot2 for Thomas Weißschuh
2024-11-02 11:50 ` tip-bot2 for Thomas Weißschuh
2024-10-10 7:01 ` [PATCH 28/28] vdso: Rename struct arch_vdso_data to arch_vdso_time_data Thomas Weißschuh
2024-10-10 7:55 ` Heiko Carstens
2024-11-02 10:10 ` [tip: timers/vdso] " tip-bot2 for Nam Cao
2024-11-02 11:50 ` tip-bot2 for Nam Cao [this message]
2024-10-30 11:39 ` [PATCH 00/28] vdso: Preparations for generic data storage Thomas Gleixner
2024-11-05 14:04 ` Christophe Leroy
2024-11-06 7:06 ` Michael Ellerman
2024-12-11 22:33 ` patchwork-bot+linux-riscv
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=173054821047.3137.13007406079964356787.tip-bot2@tip-bot2 \
--to=tip-bot2@linutronix.de \
--cc=hca@linux.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tip-commits@vger.kernel.org \
--cc=namcao@linutronix.de \
--cc=tglx@linutronix.de \
--cc=x86@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®