arm: perf: move event map macros to pmu.h
[deliverable/linux.git] / arch / arm / include / asm / pmu.h
index ae1919be8f988a68d109963f087912128d773dbc..748d20d77fc5e610c13c57e6b2dd71b69ae77a1e 100644 (file)
@@ -42,6 +42,15 @@ struct arm_pmu_platdata {
 
 #ifdef CONFIG_HW_PERF_EVENTS
 
+/*
+ * The ARMv7 CPU PMU supports up to 32 event counters.
+ */
+#define ARMPMU_MAX_HWEVENTS            32
+
+#define HW_OP_UNSUPPORTED              0xFFFF
+#define C(_x)                          PERF_COUNT_HW_CACHE_##_x
+#define CACHE_OP_UNSUPPORTED           0xFFFF
+
 /* The events for a given PMU register set. */
 struct pmu_hw_events {
        /*
This page took 0.039612 seconds and 5 git commands to generate.