Fix the Wii build, and remove an extraneous critical_enter().

This commit is contained in:
Justin Hibbits 2013-10-16 04:11:42 +00:00
parent b45ca25f86
commit 6141b794bf

View File

@ -101,17 +101,16 @@ powerpc_interrupt(struct trapframe *framep)
atomic_subtract_int(&td->td_intr_nesting_level, 1);
critical_exit();
break;
#ifdef HWPMC_HOOKS
case EXC_PERF:
critical_enter();
KASSERT(pmc_intr != NULL, ("Performance exception, but no handler!"));
(*pmc_intr)(PCPU_GET(cpuid), framep);
critical_enter();
#ifdef HWPMC_HOOKS
if (pmc_hook && (PCPU_GET(curthread)->td_pflags & TDP_CALLCHAIN))
pmc_hook(PCPU_GET(curthread), PMC_FN_USER_CALLCHAIN, framep);
#endif
critical_exit();
break;
#endif
default:
/* Re-enable interrupts if applicable. */