@@ -45,11 +45,21 @@ struct power_pmu {
/*
* Values for power_pmu.flags
*/
-#define PPMU_LIMITED_PMC5_6 1 /* PMC5/6 have limited function */
-#define PPMU_ALT_SIPR 2 /* uses alternate posn for SIPR/HV */
-#define PPMU_NO_SIPR 4 /* no SIPR/HV in MMCRA at all */
-#define PPMU_NO_CONT_SAMPLING 8 /* no continuous sampling */
-#define PPMU_SIAR_VALID 16 /* Processor has SIAR Valid bit */
+
+#define PPMU_LIMITED_PMC5_6 \
+ 0x0000000000000001UL /* PMC5/6 have limited function */
+
+#define PPMU_ALT_SIPR \
+ 0x0000000000000002UL /* uses alternate posn for SIPR/HV */
+
+#define PPMU_NO_SIPR \
+ 0x0000000000000004UL /* no SIPR/HV in MMCRA at all */
+
+#define PPMU_NO_CONT_SAMPLING \
+ 0x0000000000000008UL /* no continuous sampling */
+
+#define PPMU_SIAR_VALID \
+ 0x0000000000000010UL /* Processor has SIAR Valid bit */
/*
* Values for flags to get_alternatives()
Change the representation of the PMU flags from decimal to hex since they are bitfields which are easier to read in hex. Signed-off-by: Anshuman Khandual <khandual@linux.vnet.ibm.com> --- arch/powerpc/include/asm/perf_event_server.h | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-)