diff options
author | 2021-07-23 15:01:24 +0200 | |
---|---|---|
committer | 2021-08-11 22:41:11 -0700 | |
commit | 0aba691a7443a7541c1dc56423e0c92cc6ea7164 (patch) | |
tree | 7ee0d3202f46803cf10648abc37b1f469e1c6f3f /tools/perf/scripts/python/export-to-postgresql.py | |
parent | riscv: Optimize kernel virtual address conversion macro (diff) | |
download | wireguard-linux-0aba691a7443a7541c1dc56423e0c92cc6ea7164.tar.xz wireguard-linux-0aba691a7443a7541c1dc56423e0c92cc6ea7164.zip |
riscv: Introduce va_kernel_pa_offset for 32-bit kernel
va_kernel_pa_offset was only used for 64-bit as the kernel mapping lies
in the linear mapping for 32-bit kernel and then only the offset between
the PAGE_OFFSET and the kernel load address is needed.
But this distinction complexifies the code with #ifdefs and especially
with a separate definition of the address conversions macros.
Simplify the code by defining this variable for both 32-bit and 64-bit.
Signed-off-by: Alexandre Ghiti <alex@ghiti.fr>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions