drivers/bus: Move Arm CCN PMU driver
authorRobin Murphy <robin.murphy@arm.com>
Thu, 15 Feb 2018 18:51:41 +0000 (18:51 +0000)
committerArnd Bergmann <arnd@arndb.de>
Tue, 6 Mar 2018 16:26:15 +0000 (17:26 +0100)
The arm-ccn driver is purely a perf driver for the CCN PMU, not a bus
driver in the sense of the other residents of drivers/bus/, so let's
move it to the appropriate place for SoC PMU drivers. Not to mention
moving the documentation accordingly as well.

Acked-by: Pawel Moll <pawel.moll@arm.com>
Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Documentation/devicetree/bindings/perf/arm-ccn.txt [moved from Documentation/devicetree/bindings/arm/ccn.txt with 100% similarity]
Documentation/perf/arm-ccn.txt [moved from Documentation/arm/CCN.txt with 100% similarity]
drivers/bus/Kconfig
drivers/bus/Makefile
drivers/perf/Kconfig
drivers/perf/Makefile
drivers/perf/arm-ccn.c [moved from drivers/bus/arm-ccn.c with 100% similarity]

index 57e011d..116446c 100644 (file)
@@ -48,14 +48,6 @@ config ARM_CCI5xx_PMU
 
          If unsure, say Y
 
-config ARM_CCN
-       tristate "ARM CCN driver support"
-       depends on ARM || ARM64
-       depends on PERF_EVENTS
-       help
-         PMU (perf) driver supporting the ARM CCN (Cache Coherent Network)
-         interconnect.
-
 config BRCMSTB_GISB_ARB
        bool "Broadcom STB GISB bus arbiter"
        depends on ARM || ARM64 || MIPS
index 9bcd0bf..19733af 100644 (file)
@@ -5,8 +5,6 @@
 
 # Interconnect bus drivers for ARM platforms
 obj-$(CONFIG_ARM_CCI)          += arm-cci.o
-obj-$(CONFIG_ARM_CCN)          += arm-ccn.o
-
 obj-$(CONFIG_BRCMSTB_GISB_ARB) += brcmstb_gisb.o
 obj-$(CONFIG_IMX_WEIM)         += imx-weim.o
 obj-$(CONFIG_MIPS_CDMM)                += mips_cdmm.o
index da5724c..331b6d9 100644 (file)
@@ -5,6 +5,13 @@
 menu "Performance monitor support"
        depends on PERF_EVENTS
 
+config ARM_CCN
+       tristate "ARM CCN driver support"
+       depends on ARM || ARM64
+       help
+         PMU (perf) driver supporting the ARM CCN (Cache Coherent Network)
+         interconnect.
+
 config ARM_PMU
        depends on ARM || ARM64
        bool "ARM PMU framework"
index c2f2741..5004abe 100644 (file)
@@ -1,4 +1,5 @@
 # SPDX-License-Identifier: GPL-2.0
+obj-$(CONFIG_ARM_CCN) += arm-ccn.o
 obj-$(CONFIG_ARM_DSU_PMU) += arm_dsu_pmu.o
 obj-$(CONFIG_ARM_PMU) += arm_pmu.o arm_pmu_platform.o
 obj-$(CONFIG_ARM_PMU_ACPI) += arm_pmu_acpi.o
similarity index 100%
rename from drivers/bus/arm-ccn.c
rename to drivers/perf/arm-ccn.c