]> rtime.felk.cvut.cz Git - linux-imx.git/commitdiff
powerpc/perf: Change PMU flag representation from decimal to hex
authorAnshuman Khandual <khandual@linux.vnet.ibm.com>
Mon, 19 Nov 2012 01:11:46 +0000 (01:11 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 10 Jan 2013 04:09:09 +0000 (15:09 +1100)
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>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/perf_event_server.h

index 9710be3a2d1753e7fef95287d182811e5ce5a0ba..d3e97487c72c80da90c7590b949888edc99f5e77 100644 (file)
@@ -45,11 +45,11 @@ 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    0x00000001 /* PMC5/6 have limited function */
+#define PPMU_ALT_SIPR          0x00000002 /* uses alternate posn for SIPR/HV */
+#define PPMU_NO_SIPR           0x00000004 /* no SIPR/HV in MMCRA at all */
+#define PPMU_NO_CONT_SAMPLING  0x00000008 /* no continuous sampling */
+#define PPMU_SIAR_VALID                0x00000010 /* Processor has SIAR Valid bit */
 
 /*
  * Values for flags to get_alternatives()