File tree Expand file tree Collapse file tree 6 files changed +15
-11
lines changed Expand file tree Collapse file tree 6 files changed +15
-11
lines changed Original file line number Diff line number Diff line change @@ -78,8 +78,6 @@ obj-$(CONFIG_CPU_XSC3) += xscale-cp0.o
78
78
obj-$(CONFIG_CPU_MOHAWK) += xscale-cp0.o
79
79
obj-$(CONFIG_IWMMXT) += iwmmxt.o
80
80
obj-$(CONFIG_PERF_EVENTS) += perf_regs.o perf_callchain.o
81
- obj-$(CONFIG_HW_PERF_EVENTS) += perf_event_xscale.o perf_event_v6.o \
82
- perf_event_v7.o
83
81
AFLAGS_iwmmxt.o := -Wa,-mcpu=iwmmxt
84
82
obj-$(CONFIG_ARM_CPU_TOPOLOGY) += topology.o
85
83
obj-$(CONFIG_VDSO) += vdso.o
Original file line number Diff line number Diff line change @@ -56,6 +56,18 @@ config ARM_PMU
56
56
Say y if you want to use CPU performance monitors on ARM-based
57
57
systems.
58
58
59
+ config ARM_V6_PMU
60
+ depends on ARM_PMU && (CPU_V6 || CPU_V6K)
61
+ def_bool y
62
+
63
+ config ARM_V7_PMU
64
+ depends on ARM_PMU && CPU_V7
65
+ def_bool y
66
+
67
+ config ARM_XSCALE_PMU
68
+ depends on ARM_PMU && CPU_XSCALE
69
+ def_bool y
70
+
59
71
config RISCV_PMU
60
72
depends on RISCV
61
73
bool "RISC-V PMU framework"
Original file line number Diff line number Diff line change @@ -6,6 +6,9 @@ obj-$(CONFIG_ARM_DSU_PMU) += arm_dsu_pmu.o
6
6
obj-$(CONFIG_ARM_PMU) += arm_pmu.o arm_pmu_platform.o
7
7
obj-$(CONFIG_ARM_PMU_ACPI) += arm_pmu_acpi.o
8
8
obj-$(CONFIG_ARM_PMUV3) += arm_pmuv3.o
9
+ obj-$(CONFIG_ARM_V6_PMU) += arm_v6_pmu.o
10
+ obj-$(CONFIG_ARM_V7_PMU) += arm_v7_pmu.o
11
+ obj-$(CONFIG_ARM_XSCALE_PMU) += arm_xscale_pmu.o
9
12
obj-$(CONFIG_ARM_SMMU_V3_PMU) += arm_smmuv3_pmu.o
10
13
obj-$(CONFIG_FSL_IMX8_DDR_PMU) += fsl_imx8_ddr_perf.o
11
14
obj-$(CONFIG_FSL_IMX9_DDR_PMU) += fsl_imx9_ddr_perf.o
Original file line number Diff line number Diff line change 31
31
* enable the interrupt.
32
32
*/
33
33
34
- #if defined(CONFIG_CPU_V6 ) || defined(CONFIG_CPU_V6K )
35
-
36
34
#include <asm/cputype.h>
37
35
#include <asm/irq_regs.h>
38
36
@@ -445,4 +443,3 @@ static struct platform_driver armv6_pmu_driver = {
445
443
};
446
444
447
445
builtin_platform_driver (armv6_pmu_driver );
448
- #endif /* CONFIG_CPU_V6 || CONFIG_CPU_V6K */
Original file line number Diff line number Diff line change 17
17
* counter and all 4 performance counters together can be reset separately.
18
18
*/
19
19
20
- #ifdef CONFIG_CPU_V7
21
-
22
20
#include <asm/cp15.h>
23
21
#include <asm/cputype.h>
24
22
#include <asm/irq_regs.h>
@@ -2002,4 +2000,3 @@ static struct platform_driver armv7_pmu_driver = {
2002
2000
};
2003
2001
2004
2002
builtin_platform_driver (armv7_pmu_driver );
2005
- #endif /* CONFIG_CPU_V7 */
Original file line number Diff line number Diff line change 13
13
* PMU structures.
14
14
*/
15
15
16
- #ifdef CONFIG_CPU_XSCALE
17
-
18
16
#include <asm/cputype.h>
19
17
#include <asm/irq_regs.h>
20
18
@@ -745,4 +743,3 @@ static struct platform_driver xscale_pmu_driver = {
745
743
};
746
744
747
745
builtin_platform_driver (xscale_pmu_driver );
748
- #endif /* CONFIG_CPU_XSCALE */
You can’t perform that action at this time.
0 commit comments