aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/irqchip
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2024-09-06 21:06:55 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2024-09-17 21:05:25 +0200
commit4b22a789cb0202dacb1a29aec5bb105172f2a1a1 (patch)
tree76fdc4196d79651f8acb53ca6234f67811c59d9e /drivers/irqchip
parentMerge random tree (diff)
downloadlaptop-kernel-master.tar.xz
laptop-kernel-master.zip
x86: vdso: Compute timens page offset staticallyHEADmaster
The expression `((void *)&__timens_vdso_data - (void *)&__vdso_data)` seems harmless, but it actually results in quite a bit of code and two jumps, in a place that's supposed to be somewhat lean on code. The value of that calculation is always 3*PAGE_SIZE, as it turns out. Changing it to that results in a more modest cmov instruction being emitted. It also makes it a bit more clear what's happening. To accomplish this, define offset macros in vvar.h, which can be shared by C code and by the linker script that decides where these pages will actually go. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'drivers/irqchip')
0 files changed, 0 insertions, 0 deletions