mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Fix the Wii build, and remove an extraneous critical_enter().
This commit is contained in:
parent
b45ca25f86
commit
6141b794bf
1 changed files with 2 additions and 3 deletions
|
|
@ -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. */
|
||||
|
|
|
|||
Loading…
Reference in a new issue