diff mbox series

[v2,3/3] arm, arm64: Select CONFIG_SCHED_THERMAL_PRESSURE

Message ID 20200712165917.9168-4-valentin.schneider@arm.com (mailing list archive)
State Not Applicable, archived
Headers show
Series sched, arch_topology: Thermal pressure configuration cleanup | expand

Commit Message

Valentin Schneider July 12, 2020, 4:59 p.m. UTC
This option now correctly depends on CPU_FREQ_THERMAL, so select it on the
architectures that implement the required functions,
arch_set_thermal_pressure() and arch_get_thermal_pressure().

Signed-off-by: Valentin Schneider <valentin.schneider@arm.com>
---
 arch/arm/Kconfig   | 1 +
 arch/arm64/Kconfig | 1 +
 2 files changed, 2 insertions(+)

Comments

Catalin Marinas July 13, 2020, 10:03 a.m. UTC | #1
On Sun, Jul 12, 2020 at 05:59:17PM +0100, Valentin Schneider wrote:
> diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig
> index 66dc41fd49f2..96d478fb7a2e 100644
> --- a/arch/arm64/Kconfig
> +++ b/arch/arm64/Kconfig
> @@ -100,6 +100,7 @@ config ARM64
>  	select FRAME_POINTER
>  	select GENERIC_ALLOCATOR
>  	select GENERIC_ARCH_TOPOLOGY
> +	select SCHED_THERMAL_PRESSURE
>  	select GENERIC_CLOCKEVENTS
>  	select GENERIC_CLOCKEVENTS_BROADCAST
>  	select GENERIC_CPU_AUTOPROBE

We tend to keep these in alphabetical order. Otherwise,

Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Valentin Schneider July 13, 2020, 10:29 a.m. UTC | #2
On 13/07/20 11:03, Catalin Marinas wrote:
> On Sun, Jul 12, 2020 at 05:59:17PM +0100, Valentin Schneider wrote:
>> diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig
>> index 66dc41fd49f2..96d478fb7a2e 100644
>> --- a/arch/arm64/Kconfig
>> +++ b/arch/arm64/Kconfig
>> @@ -100,6 +100,7 @@ config ARM64
>>      select FRAME_POINTER
>>      select GENERIC_ALLOCATOR
>>      select GENERIC_ARCH_TOPOLOGY
>> +	select SCHED_THERMAL_PRESSURE
>>      select GENERIC_CLOCKEVENTS
>>      select GENERIC_CLOCKEVENTS_BROADCAST
>>      select GENERIC_CPU_AUTOPROBE
>
> We tend to keep these in alphabetical order. Otherwise,
>
> Acked-by: Catalin Marinas <catalin.marinas@arm.com>

Thanks! Will reorder that in v3.
diff mbox series

Patch

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 2ac74904a3ce..939c4d6bbc2e 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -46,6 +46,7 @@  config ARM
 	select EDAC_ATOMIC_SCRUB
 	select GENERIC_ALLOCATOR
 	select GENERIC_ARCH_TOPOLOGY if ARM_CPU_TOPOLOGY
+	select SCHED_THERMAL_PRESSURE if ARM_CPU_TOPOLOGY
 	select GENERIC_ATOMIC64 if CPU_V7M || CPU_V6 || !CPU_32v6K || !AEABI
 	select GENERIC_CLOCKEVENTS_BROADCAST if SMP
 	select GENERIC_CPU_AUTOPROBE
diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig
index 66dc41fd49f2..96d478fb7a2e 100644
--- a/arch/arm64/Kconfig
+++ b/arch/arm64/Kconfig
@@ -100,6 +100,7 @@  config ARM64
 	select FRAME_POINTER
 	select GENERIC_ALLOCATOR
 	select GENERIC_ARCH_TOPOLOGY
+	select SCHED_THERMAL_PRESSURE
 	select GENERIC_CLOCKEVENTS
 	select GENERIC_CLOCKEVENTS_BROADCAST
 	select GENERIC_CPU_AUTOPROBE