summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2020-06-16 23:35:11 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2020-06-16 23:35:11 +0000
commit627f909cf1e797513598dd1e3860fb0b254774e1 (patch)
treea8945ecf8d79e8b41a8d65164d6261ba2d2e9d5f
parent640c682c31edf225e972b686ef85c760aac4bed3 (diff)
make intr_barrier run sched_barrier on the cpu the interrupt pinned to.
intr_barrier passed NULL to sched_barrier before this, which ends up being the primary cpu. that's been mostly right until this point, but is set to change.
-rw-r--r--sys/arch/amd64/amd64/intr.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/arch/amd64/amd64/intr.c b/sys/arch/amd64/amd64/intr.c
index ef575c628a2..0eacd25cf3f 100644
--- a/sys/arch/amd64/amd64/intr.c
+++ b/sys/arch/amd64/amd64/intr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: intr.c,v 1.52 2019/03/25 18:45:27 guenther Exp $ */
+/* $OpenBSD: intr.c,v 1.53 2020/06/16 23:35:10 dlg Exp $ */
/* $NetBSD: intr.c,v 1.3 2003/03/03 22:16:20 fvdl Exp $ */
/*
@@ -674,9 +674,10 @@ intr_printconfig(void)
}
void
-intr_barrier(void *ih)
+intr_barrier(void *cookie)
{
- sched_barrier(NULL);
+ struct intrhand *ih = cookie;
+ sched_barrier(ih->ih_cpu);
}
/*