From: Xuewen Yan <xuewen.yan@unisoc.com>
To: <rafael@kernel.org>, <lukasz.luba@arm.com>, <len.brown@intel.com>,
<pavel@ucw.cz>
Cc: <linux-pm@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
<ke.wang@unisoc.com>, <xuewen.yan94@gmail.com>,
<jeson.gao@unisoc.com>, <di.shen@unisoc.com>
Subject: [PATCH] power: energy_model: Rework the depends on for CONFIG_ENERGY_MODEL
Date: Thu, 19 Dec 2024 17:11:09 +0800 [thread overview]
Message-ID: <20241219091109.10050-1-xuewen.yan@unisoc.com> (raw)
From: Jeson Gao <jeson.gao@unisoc.com>
Now not only CPUs can use energy efficiency models, but GPUs
can also use. On the other hand, even with only one CPU, we can also
use energy_model to align control in thermal.
So remove the dependence of SMP, and add the DEVFREQ.
Signed-off-by: Jeson Gao <jeson.gao@unisoc.com>
---
kernel/power/Kconfig | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/kernel/power/Kconfig b/kernel/power/Kconfig
index afce8130d8b9..c532aee09e12 100644
--- a/kernel/power/Kconfig
+++ b/kernel/power/Kconfig
@@ -361,8 +361,7 @@ config CPU_PM
config ENERGY_MODEL
bool "Energy Model for devices with DVFS (CPUs, GPUs, etc)"
- depends on SMP
- depends on CPU_FREQ
+ depends on CPU_FREQ || PM_DEVFREQ
help
Several subsystems (thermal and/or the task scheduler for example)
can leverage information about the energy consumed by devices to
--
2.25.1
next reply other threads:[~2024-12-19 9:13 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-19 9:11 Xuewen Yan [this message]
2024-12-19 9:18 ` Lukasz Luba
2025-02-13 2:18 ` Xuewen Yan
2025-03-05 9:50 ` Lukasz Luba
2025-03-05 14:57 ` Rafael J. Wysocki
2025-03-05 15:14 ` Lukasz Luba
2025-03-06 19:38 ` Rafael J. Wysocki
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20241219091109.10050-1-xuewen.yan@unisoc.com \
--to=xuewen.yan@unisoc.com \
--cc=di.shen@unisoc.com \
--cc=jeson.gao@unisoc.com \
--cc=ke.wang@unisoc.com \
--cc=len.brown@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=lukasz.luba@arm.com \
--cc=pavel@ucw.cz \
--cc=rafael@kernel.org \
--cc=xuewen.yan94@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®