Re: [PATCH] platform profile: Restrict the core prompt to COMPILE_TEST
From: Rafael J. Wysocki (Intel)
Date: Wed Nov 18 2026 - 10:59:39 EST
On Wed, Nov 18, 2026 at 12:03 PM Daniel Lezcano
<daniel.lezcano@xxxxxxxxxxxxxxxx> wrote:
>
> All platform profile providers select PLATFORM_PROFILE, so users do not
> need to enable the core explicitly.
>
> Only show its prompt when COMPILE_TEST is enabled. This avoids exposing
> the option in normal configurations while allowing the architecture-independent
> core to be build-tested without a provider.
>
> Suggested-by: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx>
> Signed-off-by: Daniel Lezcano <daniel.lezcano@xxxxxxxxxxxxxxxx>
> ---
> drivers/platform/Kconfig | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/platform/Kconfig b/drivers/platform/Kconfig
> index 7270f24a3b6e..1cf87904afc3 100644
> --- a/drivers/platform/Kconfig
> +++ b/drivers/platform/Kconfig
> @@ -1,6 +1,6 @@
> # SPDX-License-Identifier: GPL-2.0-only
> config PLATFORM_PROFILE
> - tristate "Platform profile support"
> + tristate "Platform profile support" if COMPILE_TEST
> help
> Provide a common sysfs interface for selecting platform power,
> performance and cooling profiles. Platform-specific provider drivers
> --
No CC to linux-acpi.