diff options
| author | 2021-07-21 09:59:37 +0200 | |
|---|---|---|
| committer | 2021-08-11 18:37:48 -0700 | |
| commit | 59a27e1122133831111f9e2e40fec2307d742487 (patch) | |
| tree | cab189fe753a074c0474c43337673ecfc515ae7e /include/linux/mfd/git:/ssh:/git@git.zx2c4.com | |
| parent | dt-bindings: riscv: add starfive jh7100 bindings (diff) | |
| download | linux-dev-59a27e1122133831111f9e2e40fec2307d742487.tar.xz linux-dev-59a27e1122133831111f9e2e40fec2307d742487.zip | |
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 <alex@ghiti.fr>
Tested-by: Emil Renner Berthing <kernel@esmil.dk>
Reviewed-by: Jisheng Zhang <jszhang@kernel.org>
Reviewed-By: Vitaly Wool <vitaly.wool@konsulko.com>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
Diffstat (limited to 'include/linux/mfd/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
