summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsf <sf@openbsd.org>2015-07-19 18:44:15 +0000
committersf <sf@openbsd.org>2015-07-19 18:44:15 +0000
commitb8fe8d64500831d21aacc23a5d7994ecb98f4e33 (patch)
tree8ae4278da2f69a1fa48e0353abcd77599a9a6931
parentUninstall associated label bindings when a neighbor is down. (diff)
downloadwireguard-openbsd-b8fe8d64500831d21aacc23a5d7994ecb98f4e33.tar.xz
wireguard-openbsd-b8fe8d64500831d21aacc23a5d7994ecb98f4e33.zip
Make x86_send_ipi() return void
Nobody uses its return value. This fixes it returning an undefined value since the previous commit.
-rw-r--r--sys/arch/amd64/amd64/ipi.c10
-rw-r--r--sys/arch/amd64/include/intr.h4
2 files changed, 5 insertions, 9 deletions
diff --git a/sys/arch/amd64/amd64/ipi.c b/sys/arch/amd64/amd64/ipi.c
index 17e283a3581..14de484e87d 100644
--- a/sys/arch/amd64/amd64/ipi.c
+++ b/sys/arch/amd64/amd64/ipi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ipi.c,v 1.15 2015/07/18 19:21:02 sf Exp $ */
+/* $OpenBSD: ipi.c,v 1.16 2015/07/19 18:44:15 sf Exp $ */
/* $NetBSD: ipi.c,v 1.2 2003/03/01 13:05:37 fvdl Exp $ */
/*-
@@ -42,20 +42,16 @@
#include <machine/i82489reg.h>
#include <machine/i82489var.h>
-int
+void
x86_send_ipi(struct cpu_info *ci, int ipimask)
{
- int ret;
-
x86_atomic_setbits_u32(&ci->ci_ipis, ipimask);
/* Don't send IPI to cpu which isn't (yet) running. */
if (!(ci->ci_flags & CPUF_RUNNING))
- return ENOENT;
+ return;
x86_ipi(LAPIC_IPI_VECTOR, ci->ci_apicid, LAPIC_DLMODE_FIXED);
-
- return ret;
}
int
diff --git a/sys/arch/amd64/include/intr.h b/sys/arch/amd64/include/intr.h
index 54086d71806..d7d80134f73 100644
--- a/sys/arch/amd64/include/intr.h
+++ b/sys/arch/amd64/include/intr.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: intr.h,v 1.27 2015/07/16 05:10:14 guenther Exp $ */
+/* $OpenBSD: intr.h,v 1.28 2015/07/19 18:44:15 sf Exp $ */
/* $NetBSD: intr.h,v 1.2 2003/05/04 22:01:56 fvdl Exp $ */
/*-
@@ -211,7 +211,7 @@ int intr_find_mpmapping(int bus, int pin, int *handle);
void intr_printconfig(void);
#ifdef MULTIPROCESSOR
-int x86_send_ipi(struct cpu_info *, int);
+void x86_send_ipi(struct cpu_info *, int);
int x86_fast_ipi(struct cpu_info *, int);
void x86_broadcast_ipi(int);
void x86_ipi_handler(void);