[PATCH v3 1/2] kconfig: Remove the architecture specific config for AutoFDO

Nathan Chancellor nathan at kernel.org
Fri May 29 17:47:11 PDT 2026


On Wed, 27 May 2026 14:45:07 -0700, xur at google.com <xur at google.com> wrote:
> 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.

It is worth noting that not all architectures support
'-fsplit-machine-functions' but I guess that does not matter too much
because it will only be used if a profile is provided, which would
require an architecture that is supported by the AutoFDO tooling? The
documentation is x86_64 focused but aarch64 works as well, any others
that the kernel supports?

-- 
Cheers,
Nathan




More information about the linux-arm-kernel mailing list