Remember to decrement interrupt nesting level if leaving early

(in the unlikely case we get a clock interrupt on a non-primary CPU).
This commit is contained in:
mjacob 2000-10-30 04:18:54 +00:00
parent 7f74c53f13
commit 0782fe1a96

View File

@ -117,6 +117,7 @@ interrupt(a0, a1, a2, framep)
CTR0(KTR_INTR, "clock interrupt");
if (PCPU_GET(cpuno) != hwrpb->rpb_primary_cpu_id) {
CTR0(KTR_INTR, "ignoring clock on secondary");
atomic_subtract_int(&PCPU_GET(intr_nesting_level), 1);
return;
}