]> www.infradead.org Git - users/dwmw2/linux.git/commit
x86/cpufeature: Document cpu_feature_enabled() as the default to use
authorBorislav Petkov (AMD) <bp@alien8.de>
Thu, 31 Oct 2024 10:34:01 +0000 (11:34 +0100)
committerBorislav Petkov (AMD) <bp@alien8.de>
Tue, 10 Dec 2024 16:34:51 +0000 (17:34 +0100)
commit4bf610499c429fa0bfb3fa94be450f01016224c5
treed619e6c1f1dc44cc3e0acd3403911d681ea33deb
parent29188c16006176caee6cb6729103be51a29c1a93
x86/cpufeature: Document cpu_feature_enabled() as the default to use

cpu_feature_enabled() should be used in most cases when CPU feature
support needs to be tested in code. Document that.

Reported-by: Sohil Mehta <sohil.mehta@intel.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: Sohil Mehta <sohil.mehta@intel.com>
Acked-by: Dave Hansen <dave.hansen@linux.intel.com>
Link: https://lore.kernel.org/r/20241031103401.GBZyNdGQ-ZyXKyzC_z@fat_crate.local
arch/x86/include/asm/cpufeature.h