From 2469c867a164210ce96143517059f21db7f1fd17 Mon Sep 17 00:00:00 2001 From: rgrimes Date: Wed, 25 May 1994 09:21:21 +0000 Subject: The big 4.4BSD Lite to FreeBSD 2.0.0 (Development) patch. Reviewed by: Rodney W. Grimes Submitted by: John Dyson and David Greenman --- sys/i386/isa/mse.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'sys/i386/isa/mse.c') diff --git a/sys/i386/isa/mse.c b/sys/i386/isa/mse.c index eebe163..5f80b21 100644 --- a/sys/i386/isa/mse.c +++ b/sys/i386/isa/mse.c @@ -71,7 +71,7 @@ struct isa_driver msedriver = { struct mse_softc { int sc_flags; int sc_mousetype; - pid_t sc_selp; + struct selinfo sc_selp; u_int sc_port; void (*sc_enablemouse)(); void (*sc_disablemouse)(); @@ -316,7 +316,7 @@ mseselect(dev, rw, p) * Since this is an exclusive open device, any previous proc. * pointer is trash now, so we can just assign it. */ - sc->sc_selp = p->p_pid; + selrecord(p, &sc->sc_selp); splx(s); return (0); } @@ -350,11 +350,7 @@ mseintr(unit) sc->sc_flags &= ~MSESC_WANT; wakeup((caddr_t)sc); } - if (sc->sc_selp) { - p = sc->sc_selp; - sc->sc_selp = (pid_t)0; - selwakeup(p, 0); - } + selwakeup(&sc->sc_selp); } } -- cgit v1.1