diff options
author | Ard Biesheuvel <[email protected]> | 2016-02-22 18:46:03 +0100 |
---|---|---|
committer | Catalin Marinas <[email protected]> | 2016-02-23 17:42:11 +0000 |
commit | a92405f082d43267575444a6927085e4c8a69e4e (patch) | |
tree | ba1521809b1a95c228956628863c8d454cd0dff7 /scripts/gcc-plugins/randomize_layout_plugin.c | |
parent | 70c8abc28762d04e36c92e07eee2ce6ab41049cb (diff) |
arm64: mm: only perform memstart_addr sanity check if DEBUG_VM
Checking whether memstart_addr has been assigned every time it is
referenced adds a branch instruction that may hurt performance if
the reference in question occurs on a hot path. So only perform the
check if CONFIG_DEBUG_VM=y.
Signed-off-by: Ard Biesheuvel <[email protected]>
[[email protected]: replaced #ifdef with VM_BUG_ON]
Signed-off-by: Catalin Marinas <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/randomize_layout_plugin.c')
0 files changed, 0 insertions, 0 deletions