diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2015-05-01 11:17:23 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2015-05-01 11:17:23 +0000 |
commit | 82e11938b5950c89dbc7ee141ceee86166e4aeb2 (patch) | |
tree | 242776db7445133c953f0c205626918a8359dd17 /sys/arch/octeon/dev | |
parent | 37f798e6dead07173645d57b47c7b125e1976910 (diff) |
Do not grab the kernel lock for clock interrupts. Help and ok kettenis@
Diffstat (limited to 'sys/arch/octeon/dev')
-rw-r--r-- | sys/arch/octeon/dev/octeon_intr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/octeon/dev/octeon_intr.c b/sys/arch/octeon/dev/octeon_intr.c index 0da4f6823a0..65f77e719f1 100644 --- a/sys/arch/octeon/dev/octeon_intr.c +++ b/sys/arch/octeon/dev/octeon_intr.c @@ -278,7 +278,7 @@ octeon_iointr(uint32_t hwpend, struct trap_frame *frame) if (ih->ih_level < IPL_IPI) { sr = getsr(); ENABLEIPI(); - if (ipl < IPL_SCHED) + if (ih->ih_level < IPL_CLOCK) __mp_lock(&kernel_lock); } #endif @@ -289,7 +289,7 @@ octeon_iointr(uint32_t hwpend, struct trap_frame *frame) } #ifdef MULTIPROCESSOR if (ih->ih_level < IPL_IPI) { - if (ipl < IPL_SCHED) + if (ih->ih_level < IPL_CLOCK) __mp_unlock(&kernel_lock); setsr(sr); } |