diff options
author | Sean Christopherson <[email protected]> | 2023-06-01 18:05:50 -0700 |
---|---|---|
committer | Sean Christopherson <[email protected]> | 2023-06-06 15:15:06 -0700 |
commit | 056b9919a16aedc560e6756a235ef5a62a68db05 (patch) | |
tree | c5c011c1dba23bbd41e9c244d6dea18fa2421893 /tools/perf/scripts/python/bin/export-to-postgresql-report | |
parent | 02f1b0b736606f9870595b3089d9c124f9da8be9 (diff) |
KVM: x86: Use cpu_feature_enabled() for PKU instead of #ifdef
Replace an #ifdef on CONFIG_X86_INTEL_MEMORY_PROTECTION_KEYS with a
cpu_feature_enabled() check on X86_FEATURE_PKU. The macro magic of
DISABLED_MASK_BIT_SET() means that cpu_feature_enabled() provides the
same end result (no code generated) when PKU is disabled by Kconfig.
No functional change intended.
Cc: Jon Kohler <[email protected]>
Reviewed-by: Jon Kohler <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Sean Christopherson <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-postgresql-report')
0 files changed, 0 insertions, 0 deletions