diff options
author | Alexandre Ghiti <[email protected]> | 2021-07-21 09:59:37 +0200 |
---|---|---|
committer | Palmer Dabbelt <[email protected]> | 2021-08-11 18:37:48 -0700 |
commit | 59a27e1122133831111f9e2e40fec2307d742487 (patch) | |
tree | cab189fe753a074c0474c43337673ecfc515ae7e /tools/perf/util/trace-event-scripting.c | |
parent | 9f2a5aebb03c19180e3be75ed7263c6ab510b75e (diff) |
riscv: Optimize kernel virtual address conversion macro
The current test in kernel_mapping_va_to_pa only applies when
CONFIG_XIP_KERNEL is set, so use IS_ENABLED to optimize this macro at
compile-time in standard kernels that do not require this test.
Signed-off-by: Alexandre Ghiti <[email protected]>
Tested-by: Emil Renner Berthing <[email protected]>
Reviewed-by: Jisheng Zhang <[email protected]>
Reviewed-By: Vitaly Wool <[email protected]>
Signed-off-by: Palmer Dabbelt <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions