summaryrefslogtreecommitdiffstats
path: root/sys/arch/sparc
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2009-11-09 17:53:38 +0000
committernicm <nicm@openbsd.org>2009-11-09 17:53:38 +0000
commit270ebf02128560a47b9b980515d58ee07855c8d6 (patch)
tree06084a8310af5d7c4a5ed9051f17b82a6efd7075 /sys/arch/sparc
parentdocument -F downgrades (note: for now, it's just the package name, we should (diff)
downloadwireguard-openbsd-270ebf02128560a47b9b980515d58ee07855c8d6.tar.xz
wireguard-openbsd-270ebf02128560a47b9b980515d58ee07855c8d6.zip
Every selwakeup() should have a matching KNOTE() (even if kqueue isn't
supported it doesn't do any harm), so put the KNOTE() in selwakeup() itself and remove it from any occurences where both are used, except one for kqueue itself and one in sys_pipe.c (where the selwakeup is under a PIPE_SEL flag). Based on a diff from tedu. ok deraadt
Diffstat (limited to 'sys/arch/sparc')
-rw-r--r--sys/arch/sparc/dev/magma.c3
-rw-r--r--sys/arch/sparc/dev/spif.c3
-rw-r--r--sys/arch/sparc/dev/z8530tty.c3
3 files changed, 3 insertions, 6 deletions
diff --git a/sys/arch/sparc/dev/magma.c b/sys/arch/sparc/dev/magma.c
index 2936c0a6c75..1390ed82200 100644
--- a/sys/arch/sparc/dev/magma.c
+++ b/sys/arch/sparc/dev/magma.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: magma.c,v 1.23 2009/10/31 12:00:07 fgsch Exp $ */
+/* $OpenBSD: magma.c,v 1.24 2009/11/09 17:53:39 nicm Exp $ */
/*-
* Copyright (c) 1998 Iain Hibbert
@@ -1208,7 +1208,6 @@ mtty_start(tp)
}
selwakeup(&tp->t_wsel);
- KNOTE(&tp->t_wsel.si_note, 0);
}
/*
diff --git a/sys/arch/sparc/dev/spif.c b/sys/arch/sparc/dev/spif.c
index bbbb914ef1d..c045e404d83 100644
--- a/sys/arch/sparc/dev/spif.c
+++ b/sys/arch/sparc/dev/spif.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: spif.c,v 1.23 2009/10/31 12:00:07 fgsch Exp $ */
+/* $OpenBSD: spif.c,v 1.24 2009/11/09 17:53:39 nicm Exp $ */
/*
* Copyright (c) 1999 Jason L. Wright (jason@thought.net)
@@ -682,7 +682,6 @@ stty_start(tp)
wakeup(&tp->t_outq);
}
selwakeup(&tp->t_wsel);
- KNOTE(&tp->t_wsel.si_note, 0);
}
if (tp->t_outq.c_cc) {
sp->sp_txc = ndqb(&tp->t_outq, 0);
diff --git a/sys/arch/sparc/dev/z8530tty.c b/sys/arch/sparc/dev/z8530tty.c
index e247826b368..9582081840f 100644
--- a/sys/arch/sparc/dev/z8530tty.c
+++ b/sys/arch/sparc/dev/z8530tty.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: z8530tty.c,v 1.12 2009/10/31 12:00:07 fgsch Exp $ */
+/* $OpenBSD: z8530tty.c,v 1.13 2009/11/09 17:53:39 nicm Exp $ */
/* $NetBSD: z8530tty.c,v 1.13 1996/10/16 20:42:14 gwr Exp $ */
/*-
@@ -808,7 +808,6 @@ zsstart(tp)
wakeup((caddr_t)&tp->t_outq);
}
selwakeup(&tp->t_wsel);
- KNOTE(&tp->t_wsel.si_note, 0);
if (tp->t_outq.c_cc == 0)
goto out;
}