diff mbox series

[01/11] PM: EM: Add ENERGY_MODEL_NETLINK Kconfig.

Message ID 20250529001315.233492-2-changwoo@igalia.com
State New
Headers show
Series [01/11] PM: EM: Add ENERGY_MODEL_NETLINK Kconfig. | expand

Commit Message

Changwoo Min May 29, 2025, 12:13 a.m. UTC
Define a Kconfig, ENERGY_MODEL_NETLINK. That enables the netlink interface,
which allows a userspace program to read the energy model and receive
multicast events upon changes to the energy model.

Signed-off-by: Changwoo Min <changwoo@igalia.com>
---
 kernel/power/Kconfig | 10 ++++++++++
 1 file changed, 10 insertions(+)
diff mbox series

Patch

diff --git a/kernel/power/Kconfig b/kernel/power/Kconfig
index 54a623680019..b45933370b4e 100644
--- a/kernel/power/Kconfig
+++ b/kernel/power/Kconfig
@@ -390,3 +390,13 @@  config ENERGY_MODEL
 	  The exact usage of the energy model is subsystem-dependent.
 
 	  If in doubt, say N.
+
+if ENERGY_MODEL
+
+config ENERGY_MODEL_NETLINK
+	bool "Energy Model netlink management"
+	depends on NET
+	help
+	  The energy model framework has a netlink interface to notify the
+	  changes in the energy model. It is recommended to enable the feature.
+endif