aboutsummaryrefslogtreecommitdiff
path: root/include/linux/fpga/fpga-mgr.h
diff options
context:
space:
mode:
authorWill Deacon <[email protected]>2022-06-09 13:12:21 +0100
committerMarc Zyngier <[email protected]>2022-06-09 13:24:02 +0100
commit112f3bab41113dc53b4f35e9034b2208245bc002 (patch)
tree7bbdd3565698eed5fe07bd5fee2a7ea0975d4f96 /include/linux/fpga/fpga-mgr.h
parentcde5042adf11b0a30a6ce0ec3d071afcf8d2efaf (diff)
KVM: arm64: Extend comment in has_vhe()
has_vhe() expands to a compile-time constant when evaluated from the VHE or nVHE code, alternatively checking a static key when called from elsewhere in the kernel. On face value, this looks like a case of premature optimization, but in fact this allows symbol references on VHE-specific code paths to be dropped from the nVHE object. Expand the comment in has_vhe() to make this clearer, hopefully discouraging anybody from simplifying the code. Cc: David Brazdil <[email protected]> Acked-by: Mark Rutland <[email protected]> Signed-off-by: Will Deacon <[email protected]> Signed-off-by: Marc Zyngier <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'include/linux/fpga/fpga-mgr.h')
0 files changed, 0 insertions, 0 deletions