mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-15 10:17:20 +00:00
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:
parent
b5ccf8460b
commit
2170c2d960
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=67924
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user