]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
PM / OPP: Move the OPP directory out of power/
authorViresh Kumar <viresh.kumar@linaro.org>
Tue, 26 Sep 2017 22:12:40 +0000 (15:12 -0700)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 3 Oct 2017 00:45:12 +0000 (02:45 +0200)
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>
12 files changed:
MAINTAINERS
drivers/Kconfig
drivers/Makefile
drivers/base/power/Makefile
drivers/opp/Kconfig [new file with mode: 0644]
drivers/opp/Makefile [moved from drivers/base/power/opp/Makefile with 100% similarity]
drivers/opp/core.c [moved from drivers/base/power/opp/core.c with 100% similarity]
drivers/opp/cpu.c [moved from drivers/base/power/opp/cpu.c with 100% similarity]
drivers/opp/debugfs.c [moved from drivers/base/power/opp/debugfs.c with 100% similarity]
drivers/opp/of.c [moved from drivers/base/power/opp/of.c with 100% similarity]
drivers/opp/opp.h [moved from drivers/base/power/opp/opp.h with 100% similarity]
kernel/power/Kconfig

index 65b0c88d5ee0d292914b85c9ba45b1fee5f466ff..7c8c649fc68b77a14ba8600a4a805bca15731dea 100644 (file)
@@ -10043,7 +10043,7 @@ M:      Stephen Boyd <sboyd@codeaurora.org>
 L:     linux-pm@vger.kernel.org
 S:     Maintained
 T:     git git://git.kernel.org/pub/scm/linux/kernel/git/vireshk/pm.git
-F:     drivers/base/power/opp/
+F:     drivers/opp/
 F:     include/linux/pm_opp.h
 F:     Documentation/power/opp.txt
 F:     Documentation/devicetree/bindings/opp/
index 505c676fa9c7053fbaf6932a813eef3468795c3a..9e264d410c2373ad132f90731b3fe636d0023d5c 100644 (file)
@@ -208,4 +208,6 @@ source "drivers/tee/Kconfig"
 
 source "drivers/mux/Kconfig"
 
+source "drivers/opp/Kconfig"
+
 endmenu
index d90fdc413648c445d55c9727faf2d8fd15f251db..dd718a3007e9a059efc2c940abf8ee65b46e305d 100644 (file)
@@ -125,6 +125,7 @@ obj-$(CONFIG_ACCESSIBILITY) += accessibility/
 obj-$(CONFIG_ISDN)             += isdn/
 obj-$(CONFIG_EDAC)             += edac/
 obj-$(CONFIG_EISA)             += eisa/
+obj-$(CONFIG_PM_OPP)           += opp/
 obj-$(CONFIG_CPU_FREQ)         += cpufreq/
 obj-$(CONFIG_CPU_IDLE)         += cpuidle/
 obj-y                          += mmc/
index 5998c53280f547cc5854a6449d41ccb95fa99c75..73a1cffc0a5fa5de2a25e48e6c2da4e0d1fff876 100644 (file)
@@ -1,7 +1,6 @@
 obj-$(CONFIG_PM)       += sysfs.o generic_ops.o common.o qos.o runtime.o wakeirq.o
 obj-$(CONFIG_PM_SLEEP) += main.o wakeup.o
 obj-$(CONFIG_PM_TRACE_RTC)     += trace.o
-obj-$(CONFIG_PM_OPP)   += opp/
 obj-$(CONFIG_PM_GENERIC_DOMAINS)       +=  domain.o domain_governor.o
 obj-$(CONFIG_HAVE_CLK) += clock_ops.o
 
diff --git a/drivers/opp/Kconfig b/drivers/opp/Kconfig
new file mode 100644 (file)
index 0000000..a7fbb93
--- /dev/null
@@ -0,0 +1,13 @@
+config PM_OPP
+       bool
+       select SRCU
+       ---help---
+         SOCs have a standard set of tuples consisting of frequency and
+         voltage pairs that the device will support per voltage domain. This
+         is called Operating Performance Point or OPP. The actual definitions
+         of OPP varies over silicon within the same family of devices.
+
+         OPP layer organizes the data internally using device pointers
+         representing individual voltage domains and provides SOC
+         implementations a ready to use framework to manage OPPs.
+         For more information, read <file:Documentation/power/opp.txt>
similarity index 100%
rename from drivers/base/power/opp/of.c
rename to drivers/opp/of.c
index e8517b63eb372eaa14b37bc32b616630e25766e1..e880ca22c5a589127b5c7f7023434e99e090972b 100644 (file)
@@ -259,20 +259,6 @@ config APM_EMULATION
          anything, try disabling/enabling this option (or disabling/enabling
          APM in your BIOS).
 
-config PM_OPP
-       bool
-       select SRCU
-       ---help---
-         SOCs have a standard set of tuples consisting of frequency and
-         voltage pairs that the device will support per voltage domain. This
-         is called Operating Performance Point or OPP. The actual definitions
-         of OPP varies over silicon within the same family of devices.
-
-         OPP layer organizes the data internally using device pointers
-         representing individual voltage domains and provides SOC
-         implementations a ready to use framework to manage OPPs.
-         For more information, read <file:Documentation/power/opp.txt>
-
 config PM_CLK
        def_bool y
        depends on PM && HAVE_CLK