]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/powerpc/kernel/pmc.c
[PATCH] Remove __devinitdata from notifier block definitions
[linux-2.6-omap-h63xx.git] / arch / powerpc / kernel / pmc.c
index 2d333cc84082a3e483700a7fc4d01e52b726d10d..e6fb194fe537dfb941261641f8d33b1eb92e5c4f 100644 (file)
@@ -43,8 +43,13 @@ static void dummy_perf(struct pt_regs *regs)
        mtspr(SPRN_MMCR0, mmcr0);
 }
 #else
+/* Ensure exceptions are disabled */
 static void dummy_perf(struct pt_regs *regs)
 {
+       unsigned int mmcr0 = mfspr(SPRN_MMCR0);
+
+       mmcr0 &= ~(MMCR0_PMXE);
+       mtspr(SPRN_MMCR0, mmcr0);
 }
 #endif