Skip to contentSkip to conversation

PM / EM: update Kconfig description and drop "default n" option

PATCH In review Lukasz Luba 2 participants 3 messages Feb 9, 2021 – Feb 12, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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'.

---
 kernel/power/Kconfig | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)
kernel/power/Kconfig +4 -5
index a7320f07689d..56dbc2616d5c 100644
@@ -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.
 
Signature · 1 line
2.17.1
#1 lore raw

PATCH 2/2 PM / Kconfig: remove unneeded "default n" options

Remove "default n" options. If the "default" line is removed, it defaults to 'n'.

---
 kernel/power/Kconfig | 3 ---
 1 file changed, 3 deletions(-)
kernel/power/Kconfig +0 -3
index 56dbc2616d5c..6bfe3ead10ad 100644
@@ -139,7 +139,6 @@ config PM_SLEEP_SMP_NONZERO_CPU
 config PM_AUTOSLEEP
 	bool "Opportunistic sleep"
 	depends on PM_SLEEP
-	default n
 	help
 	Allow the kernel to trigger a system transition into a global sleep
 	state automatically whenever there are no active wakeup sources.
@@ -147,7 +146,6 @@ config PM_AUTOSLEEP
 config PM_WAKELOCKS
 	bool "User space wakeup sources interface"
 	depends on PM_SLEEP
-	default n
 	help
 	Allow user space to create, activate and deactivate wakeup source
 	objects with the help of a sysfs-based interface.
@@ -293,7 +291,6 @@ config PM_GENERIC_DOMAINS
 config WQ_POWER_EFFICIENT_DEFAULT
 	bool "Enable workqueue power-efficient mode by default"
 	depends on PM
-	default n
 	help
 	  Per-cpu workqueues are generally preferred because they show
 	  better performance thanks to cache locality; unfortunately,
Signature · 1 line
2.17.1
#2 lore raw
In reply to Lukasz Luba
Quoted 6 lines · Lukasz Luba

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'.

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

Quoted 31 lines
---
 kernel/power/Kconfig | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)
kernel/power/Kconfig +4 -6
index a7320f07689d..56dbc2616d5c 100644
@@ -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