diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2024-09-06 21:06:55 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2024-09-17 21:05:25 +0200 |
commit | 4b22a789cb0202dacb1a29aec5bb105172f2a1a1 (patch) | |
tree | 76fdc4196d79651f8acb53ca6234f67811c59d9e /drivers/irqchip | |
parent | Merge random tree (diff) | |
download | laptop-kernel-master.tar.xz laptop-kernel-master.zip |
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