]> exis.tech > repos - linux.git/commit
kconfig: Remove the architecture specific config for AutoFDO
authorRong Xu <xur@google.com>
Thu, 4 Jun 2026 19:56:07 +0000 (12:56 -0700)
committerNathan Chancellor <nathan@kernel.org>
Sat, 6 Jun 2026 04:12:08 +0000 (21:12 -0700)
commite88b2fe8b9993c9cae856019b1c31c14b63cad7a
tree642a9eb9c7df20cb0c8739b5150a640951bc17a5
parent29c52907334a8e50ba1ee5fbaa53407dec28d876
kconfig: Remove the architecture specific config for AutoFDO

The CONFIG_AUTOFDO_CLANG option currently depends on
ARCH_SUPPORTS_AUTOFDO_CLANG, but this dependency seems unnecessary.

Remove ARCH_SUPPORTS_AUTOFDO_CLANG and allow users to control AutoFDO
builds solely through CONFIG_AUTOFDO_CLANG. This simplifies the kconfig
and avoids potential confusion.

Expand the AutoFDO documentation to include instructions for arm64.

Contributor acknowledgments:
  * SPE instructions: Daniel Hoekwater <hoekwater@google.com>
  * ETM instructions: Yabin Cui <yabinc@google.com>

Signed-off-by: Rong Xu <xur@google.com>
Suggested-by: Will Deacon <will@kernel.org>
Tested-by: Yabin Cui <yabinc@google.com>
Reviewed-by: Kees Cook <kees@kernel.org>
Link: https://patch.msgid.link/20260604195612.3757860-2-xur@google.com
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Documentation/dev-tools/autofdo.rst
arch/Kconfig
arch/x86/Kconfig