platform profile: Restrict the core prompt to COMPILE_TEST
PATCH 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.
--- 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
Quoted 18 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]>--- drivers/platform/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/platform/Kconfig +0
-0
drivers/platform/Kconfig line 6
Quoted 7 lines
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
Quoted 27 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]>--- 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 driversSignature · 1 line
2.43.0
Looks good to me
Mark
Quoted 19 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]>--- 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 --
No CC to linux-acpi.