]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
vdso: Remove struct getcpu_cache
authorThomas Weißschuh <thomas.weissschuh@linutronix.de>
Tue, 30 Dec 2025 07:08:44 +0000 (08:08 +0100)
committerThomas Gleixner <tglx@kernel.org>
Wed, 14 Jan 2026 07:56:40 +0000 (08:56 +0100)
commit7158fc54b2c6f124eec0d7cd13bff69da0172e59
treed85a61e422ce8cb00dd786a11cb65ea01224e707
parentbec06cd6a140ceb62ee4634c9550212f5f05bcfd
vdso: Remove struct getcpu_cache

The cache parameter of getcpu() is useless nowadays for various reasons.

  * It is never passed by userspace for either the vDSO or syscalls.
  * It is never used by the kernel.
  * It could not be made to work on the current vDSO architecture.
  * The structure definition is not part of the UAPI headers.
  * vdso_getcpu() is superseded by restartable sequences in any case.

Remove the struct and its header.

As a side-effect this gets rid of an unwanted inclusion of the linux/
header namespace from vDSO code.

[ tglx: Adapt to s390 upstream changes */

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Heiko Carstens <hca@linux.ibm.com> # s390
Link: https://patch.msgid.link/20251230-getcpu_cache-v3-1-fb9c5f880ebe@linutronix.de
arch/loongarch/vdso/vgetcpu.c
arch/s390/kernel/vdso/getcpu.c
arch/s390/kernel/vdso/vdso.h
arch/x86/entry/vdso/vgetcpu.c
arch/x86/include/asm/vdso/processor.h
include/linux/getcpu.h [deleted file]
include/linux/syscalls.h
kernel/sys.c
tools/testing/selftests/vDSO/vdso_test_getcpu.c