Add the hardware addresses to the register descriptions for the power5 pmu.
Signed-off-by: Kevin Corry <[EMAIL PROTECTED]>
Signed-off-by: Carl Love <[EMAIL PROTECTED]>
Index: linux-2.6.20-arnd3-perfmon4/arch/powerpc/perfmon/perfmon_power5.c
===================================================================
--- linux-2.6.20-arnd3-perfmon4.orig/arch/powerpc/perfmon/perfmon_power5.c
+++ linux-2.6.20-arnd3-perfmon4/arch/powerpc/perfmon/perfmon_power5.c
@@ -30,20 +30,20 @@ MODULE_DESCRIPTION("POWER5 PMU descripti
MODULE_LICENSE("GPL");
static struct pfm_reg_desc pfm_power5_pmc_desc[]={
-/* mmcr0 */ PMC_D(PFM_REG_I, "MMCR0", MMCR0_FC, 0, 0, 0),
-/* mmcr1 */ PMC_D(PFM_REG_I, "MMCR1", 0x0, 0, 0, 0),
-/* mmcra */ PMC_D(PFM_REG_I, "MMCRA", 0x0, 0, 0, 0)
+/* mmcr0 */ PMC_D(PFM_REG_I, "MMCR0", MMCR0_FC, 0, 0, SPRN_MMCR0),
+/* mmcr1 */ PMC_D(PFM_REG_I, "MMCR1", 0, 0, 0, SPRN_MMCR1),
+/* mmcra */ PMC_D(PFM_REG_I, "MMCRA", 0, 0, 0, SPRN_MMCRA)
};
#define PFM_PM_NUM_PMCS ARRAY_SIZE(pfm_power5_pmc_desc)
static struct pfm_reg_desc pfm_power5_pmd_desc[]={
-/* tb */ PMD_D(PFM_REG_C, "TB" , 0), /* rsvd_msk = -1 */
-/* pmd1 */ PMD_D(PFM_REG_C, "PMC1", 0),
-/* pmd2 */ PMD_D(PFM_REG_C, "PMC2", 0),
-/* pmd3 */ PMD_D(PFM_REG_C, "PMC3", 0),
-/* pmd4 */ PMD_D(PFM_REG_C, "PMC4", 0),
-/* pmd5 */ PMD_D(PFM_REG_C, "PMC5", 0),
-/* pmd6 */ PMD_D(PFM_REG_C, "PMC6", 0)
+/* tb */ PMD_D(PFM_REG_C, "TB" , SPRN_TBRL),
+/* pmd1 */ PMD_D(PFM_REG_C, "PMC1", SPRN_PMC1),
+/* pmd2 */ PMD_D(PFM_REG_C, "PMC2", SPRN_PMC2),
+/* pmd3 */ PMD_D(PFM_REG_C, "PMC3", SPRN_PMC3),
+/* pmd4 */ PMD_D(PFM_REG_C, "PMC4", SPRN_PMC4),
+/* pmd5 */ PMD_D(PFM_REG_C, "PMC5", SPRN_PMC5),
+/* pmd6 */ PMD_D(PFM_REG_C, "PMC6", SPRN_PMC6),
};
#define PFM_PM_NUM_PMDS ARRAY_SIZE(pfm_power5_pmd_desc)
_______________________________________________
perfmon mailing list
[email protected]
http://www.hpl.hp.com/hosted/linux/mail-archives/perfmon/