]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drivers: firmware: psci: Move psci to separate directory
authorUlf Hansson <ulf.hansson@linaro.org>
Wed, 10 Apr 2019 08:20:21 +0000 (10:20 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 12 Apr 2019 08:59:37 +0000 (10:59 +0200)
Some following changes extends the PSCI driver with some additional
files.  Avoid to continue cluttering the toplevel firmware directory
and first move the PSCI files into a PSCI sub-directory.

Suggested-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Acked-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/firmware/Kconfig
drivers/firmware/Makefile
drivers/firmware/psci/Kconfig [new file with mode: 0644]
drivers/firmware/psci/Makefile [new file with mode: 0644]
drivers/firmware/psci/psci.c [moved from drivers/firmware/psci.c with 100% similarity]
drivers/firmware/psci/psci_checker.c [moved from drivers/firmware/psci_checker.c with 100% similarity]

index cac16c4b0df3eb6232b75cb7237091a5fda8f95e..7b655f6156fba922378e6ad6c32cee8399b4aef7 100644 (file)
@@ -5,20 +5,6 @@
 
 menu "Firmware Drivers"
 
-config ARM_PSCI_FW
-       bool
-
-config ARM_PSCI_CHECKER
-       bool "ARM PSCI checker"
-       depends on ARM_PSCI_FW && HOTPLUG_CPU && CPU_IDLE && !TORTURE_TEST
-       help
-         Run the PSCI checker during startup. This checks that hotplug and
-         suspend operations work correctly when using PSCI.
-
-         The torture tests may interfere with the PSCI checker by turning CPUs
-         on and off through hotplug, so for now torture tests and PSCI checker
-         are mutually exclusive.
-
 config ARM_SCMI_PROTOCOL
        bool "ARM System Control and Management Interface (SCMI) Message Protocol"
        depends on ARM || ARM64 || COMPILE_TEST
@@ -270,6 +256,7 @@ config TI_SCI_PROTOCOL
 config HAVE_ARM_SMCCC
        bool
 
+source "drivers/firmware/psci/Kconfig"
 source "drivers/firmware/broadcom/Kconfig"
 source "drivers/firmware/google/Kconfig"
 source "drivers/firmware/efi/Kconfig"
index 80feb635120fc72283da432b08ba1f6eed8aa9dd..9a3909a226820cae08c5061bf5da5c44148e8995 100644 (file)
@@ -2,8 +2,6 @@
 #
 # Makefile for the linux kernel.
 #
-obj-$(CONFIG_ARM_PSCI_FW)      += psci.o
-obj-$(CONFIG_ARM_PSCI_CHECKER) += psci_checker.o
 obj-$(CONFIG_ARM_SCPI_PROTOCOL)        += arm_scpi.o
 obj-$(CONFIG_ARM_SCPI_POWER_DOMAIN) += scpi_pm_domain.o
 obj-$(CONFIG_ARM_SDE_INTERFACE)        += arm_sdei.o
@@ -25,6 +23,7 @@ CFLAGS_qcom_scm-32.o :=$(call as-instr,.arch armv7-a\n.arch_extension sec,-DREQU
 obj-$(CONFIG_TI_SCI_PROTOCOL)  += ti_sci.o
 
 obj-$(CONFIG_ARM_SCMI_PROTOCOL)        += arm_scmi/
+obj-y                          += psci/
 obj-y                          += broadcom/
 obj-y                          += meson/
 obj-$(CONFIG_GOOGLE_FIRMWARE)  += google/
diff --git a/drivers/firmware/psci/Kconfig b/drivers/firmware/psci/Kconfig
new file mode 100644 (file)
index 0000000..26a3b32
--- /dev/null
@@ -0,0 +1,13 @@
+config ARM_PSCI_FW
+       bool
+
+config ARM_PSCI_CHECKER
+       bool "ARM PSCI checker"
+       depends on ARM_PSCI_FW && HOTPLUG_CPU && CPU_IDLE && !TORTURE_TEST
+       help
+         Run the PSCI checker during startup. This checks that hotplug and
+         suspend operations work correctly when using PSCI.
+
+         The torture tests may interfere with the PSCI checker by turning CPUs
+         on and off through hotplug, so for now torture tests and PSCI checker
+         are mutually exclusive.
diff --git a/drivers/firmware/psci/Makefile b/drivers/firmware/psci/Makefile
new file mode 100644 (file)
index 0000000..1956b88
--- /dev/null
@@ -0,0 +1,4 @@
+# SPDX-License-Identifier: GPL-2.0
+#
+obj-$(CONFIG_ARM_PSCI_FW)      += psci.o
+obj-$(CONFIG_ARM_PSCI_CHECKER) += psci_checker.o