linux/arch
Thomas Gleixner 4c5a116ada vdso/treewide: Add vdso_data pointer argument to __arch_get_hw_counter()
MIPS already uses and S390 will need the vdso data pointer in
__arch_get_hw_counter().

This works nicely as long as the architecture does not support time
namespaces in the VDSO. With time namespaces enabled the regular
accessor to the vdso data pointer __arch_get_vdso_data() will return the
namespace specific VDSO data page for tasks which are part of a
non-root time namespace. This would cause the architectures which need
the vdso data pointer in __arch_get_hw_counter() to access the wrong
vdso data page.

Add a vdso_data pointer argument to __arch_get_hw_counter() and hand it in
from the call sites in the core code. For architectures which do not need
the data pointer in their counter accessor function the compiler will just
optimize it out.

Fix up all existing architecture implementations and make MIPS utilize the
pointer instead of invoking the accessor function.

No functional change and no change in the resulting object code (except
MIPS).

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lkml.kernel.org/r/draft-87wo2ekuzn.fsf@nanos.tec.linutronix.de
2020-08-06 10:57:30 +02:00
..
alpha dma-mapping updates for 5.9 2020-08-04 17:29:57 -07:00
arc fork-v5.9 2020-08-04 14:47:45 -07:00
arm vdso/treewide: Add vdso_data pointer argument to __arch_get_hw_counter() 2020-08-06 10:57:30 +02:00
arm64 vdso/treewide: Add vdso_data pointer argument to __arch_get_hw_counter() 2020-08-06 10:57:30 +02:00
c6x
csky
h8300 fork-v5.9 2020-08-04 14:47:45 -07:00
hexagon fork-v5.9 2020-08-04 14:47:45 -07:00
ia64 It's been a busy cycle for documentation - hopefully the busiest for a 2020-08-04 22:47:54 -07:00
m68k close-range-v5.9 2020-08-04 15:12:02 -07:00
microblaze close-range-v5.9 2020-08-04 15:12:02 -07:00
mips vdso/treewide: Add vdso_data pointer argument to __arch_get_hw_counter() 2020-08-06 10:57:30 +02:00
nds32
nios2
openrisc fork-v5.9 2020-08-04 14:47:45 -07:00
parisc It's been a busy cycle for documentation - hopefully the busiest for a 2020-08-04 22:47:54 -07:00
powerpc dma-mapping updates for 5.9 2020-08-04 17:29:57 -07:00
riscv vdso/treewide: Add vdso_data pointer argument to __arch_get_hw_counter() 2020-08-06 10:57:30 +02:00
s390 Printk changes for 5.9 2020-08-04 22:22:25 -07:00
sh It's been a busy cycle for documentation - hopefully the busiest for a 2020-08-04 22:47:54 -07:00
sparc The usual boring updates from the interrupt subsystem: 2020-08-04 18:11:58 -07:00
um
x86 vdso/treewide: Add vdso_data pointer argument to __arch_get_hw_counter() 2020-08-06 10:57:30 +02:00
xtensa close-range-v5.9 2020-08-04 15:12:02 -07:00
.gitignore
Kconfig It's been a busy cycle for documentation - hopefully the busiest for a 2020-08-04 22:47:54 -07:00