Skip to content

Commit 7813dd6

Browse files
vireshkrafaeljw
authored andcommitted
PM / OPP: Move the OPP directory out of power/
The drivers/base/power/ directory is special and contains code related to power management core like system suspend/resume, hibernation, etc. It was fine to keep the OPP code inside it when we had just one file for it, but it is growing now and already has a directory for itself. Lets move it directly under drivers/ directory, just like cpufreq and cpuidle. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Acked-by: Stephen Boyd <sboyd@codeaurora.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 9e66317 commit 7813dd6

12 files changed

Lines changed: 17 additions & 16 deletions

File tree

‎MAINTAINERS‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10043,7 +10043,7 @@ M: Stephen Boyd <sboyd@codeaurora.org>
1004310043
L: linux-pm@vger.kernel.org
1004410044
S: Maintained
1004510045
T: git git://git.kernel.org/pub/scm/linux/kernel/git/vireshk/pm.git
10046-
F: drivers/base/power/opp/
10046+
F: drivers/opp/
1004710047
F: include/linux/pm_opp.h
1004810048
F: Documentation/power/opp.txt
1004910049
F: Documentation/devicetree/bindings/opp/

‎drivers/Kconfig‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,4 +208,6 @@ source "drivers/tee/Kconfig"
208208

209209
source "drivers/mux/Kconfig"
210210

211+
source "drivers/opp/Kconfig"
212+
211213
endmenu

‎drivers/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ obj-$(CONFIG_ACCESSIBILITY) += accessibility/
125125
obj-$(CONFIG_ISDN) += isdn/
126126
obj-$(CONFIG_EDAC) += edac/
127127
obj-$(CONFIG_EISA) += eisa/
128+
obj-$(CONFIG_PM_OPP) += opp/
128129
obj-$(CONFIG_CPU_FREQ) += cpufreq/
129130
obj-$(CONFIG_CPU_IDLE) += cpuidle/
130131
obj-y += mmc/

‎drivers/base/power/Makefile‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
obj-$(CONFIG_PM) += sysfs.o generic_ops.o common.o qos.o runtime.o wakeirq.o
22
obj-$(CONFIG_PM_SLEEP) += main.o wakeup.o
33
obj-$(CONFIG_PM_TRACE_RTC) += trace.o
4-
obj-$(CONFIG_PM_OPP) += opp/
54
obj-$(CONFIG_PM_GENERIC_DOMAINS) += domain.o domain_governor.o
65
obj-$(CONFIG_HAVE_CLK) += clock_ops.o
76

‎drivers/opp/Kconfig‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
config PM_OPP
2+
bool
3+
select SRCU
4+
---help---
5+
SOCs have a standard set of tuples consisting of frequency and
6+
voltage pairs that the device will support per voltage domain. This
7+
is called Operating Performance Point or OPP. The actual definitions
8+
of OPP varies over silicon within the same family of devices.
9+
10+
OPP layer organizes the data internally using device pointers
11+
representing individual voltage domains and provides SOC
12+
implementations a ready to use framework to manage OPPs.
13+
For more information, read <file:Documentation/power/opp.txt>

0 commit comments

Comments
 (0)