platform profile: Restrict the core prompt to COMPILE_TEST
PATCH RESEND 1/1 platform profile: Restrict the core prompt to COMPILE_TEST
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 <[email protected]>
Signed-off-by Daniel Lezcano <[email protected]>
Reviewed-by Mario Limonciello (AMD) <[email protected]>
Reviewed-by Mark Pearson <[email protected]>
--- drivers/platform/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/platform/Kconfig +1 -1
@@ -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
Signature · 1 line
2.43.0
Rafael J. Wysocki (Intel)
AppliedQuoted 21 lines · Daniel Lezcano
All platform profile providers select
PLATFORM_PROFILE, so users do not need to enable the core explicitly.Only show its prompt when
COMPILE_TESTis 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 <[email protected]>Signed-off-by Daniel Lezcano <[email protected]>Reviewed-by Mario Limonciello (AMD) <[email protected]>Reviewed-by Mark Pearson <[email protected]>--- drivers/platform/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/platform/Kconfig +0
-0
drivers/platform/Kconfig
Quoted 8 lines
drivers/platform/Kconfig +1
-2@@ -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 --
Applied, thanks!