2021-02-10 03:15:20

by Lukasz Luba

[permalink] [raw]
Subject: [PATCH 1/2] PM / EM: update Kconfig description and drop "default n" option

Energy Model supports now other devices like GPUs, DSPs, not only CPUs.
Thus, update the description in the config option. Remove also unneeded
"default n". If the "default" line is removed, it defaults to 'n'.

Signed-off-by: Lukasz Luba <[email protected]>
---
kernel/power/Kconfig | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/kernel/power/Kconfig b/kernel/power/Kconfig
index a7320f07689d..56dbc2616d5c 100644
--- a/kernel/power/Kconfig
+++ b/kernel/power/Kconfig
@@ -322,15 +322,14 @@ config CPU_PM
bool

config ENERGY_MODEL
- bool "Energy Model for CPUs"
+ bool "Energy Model for devices with DVFS (CPUs, GPUs, etc)"
depends on SMP
depends on CPU_FREQ
- default n
help
Several subsystems (thermal and/or the task scheduler for example)
- can leverage information about the energy consumed by CPUs to make
- smarter decisions. This config option enables the framework from
- which subsystems can access the energy models.
+ can leverage information about the energy consumed by devices to
+ make smarter decisions. This config option enables the framework
+ from which subsystems can access the energy models.

The exact usage of the energy model is subsystem-dependent.

--
2.17.1


2021-02-12 15:48:35

by Rafael J. Wysocki

[permalink] [raw]
Subject: Re: [PATCH 1/2] PM / EM: update Kconfig description and drop "default n" option

On Tue, Feb 9, 2021 at 11:58 AM Lukasz Luba <[email protected]> wrote:
>
> Energy Model supports now other devices like GPUs, DSPs, not only CPUs.
> Thus, update the description in the config option. Remove also unneeded
> "default n". If the "default" line is removed, it defaults to 'n'.
>
> Signed-off-by: Lukasz Luba <[email protected]>

Applied along with the [2/2[ as 5.12 material, thanks!

> ---
> kernel/power/Kconfig | 9 ++++-----
> 1 file changed, 4 insertions(+), 5 deletions(-)
>
> diff --git a/kernel/power/Kconfig b/kernel/power/Kconfig
> index a7320f07689d..56dbc2616d5c 100644
> --- a/kernel/power/Kconfig
> +++ b/kernel/power/Kconfig
> @@ -322,15 +322,14 @@ config CPU_PM
> bool
>
> config ENERGY_MODEL
> - bool "Energy Model for CPUs"
> + bool "Energy Model for devices with DVFS (CPUs, GPUs, etc)"
> depends on SMP
> depends on CPU_FREQ
> - default n
> help
> Several subsystems (thermal and/or the task scheduler for example)
> - can leverage information about the energy consumed by CPUs to make
> - smarter decisions. This config option enables the framework from
> - which subsystems can access the energy models.
> + can leverage information about the energy consumed by devices to
> + make smarter decisions. This config option enables the framework
> + from which subsystems can access the energy models.
>
> The exact usage of the energy model is subsystem-dependent.
>
> --
> 2.17.1
>