diff options
author | jhb <jhb@FreeBSD.org> | 2001-09-21 22:46:54 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2001-09-21 22:46:54 +0000 |
commit | 69b2d3f3db54f4cde3dd60308204bdabacae595d (patch) | |
tree | 057f0cd831e7571064316d6cd028a7bac4d0448f /sys/dev | |
parent | 5954be75cafd9af8c37554c9128a4910deb3f77e (diff) | |
download | FreeBSD-src-69b2d3f3db54f4cde3dd60308204bdabacae595d.zip FreeBSD-src-69b2d3f3db54f4cde3dd60308204bdabacae595d.tar.gz |
Use the passed in thread to selrecord() instead of curthread.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/random/randomdev.c | 2 | ||||
-rw-r--r-- | sys/dev/sound/pcm/channel.c | 2 | ||||
-rw-r--r-- | sys/dev/usb/usb.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/random/randomdev.c b/sys/dev/random/randomdev.c index 868d72f..a0bd578 100644 --- a/sys/dev/random/randomdev.c +++ b/sys/dev/random/randomdev.c @@ -224,7 +224,7 @@ random_poll(dev_t dev, int events, struct thread *td) if (random_systat.seeded) revents = events & (POLLIN | POLLRDNORM); else - selrecord(curthread, &random_systat.rsel); + selrecord(td, &random_systat.rsel); } return revents; } diff --git a/sys/dev/sound/pcm/channel.c b/sys/dev/sound/pcm/channel.c index dd562c1..c21076c 100644 --- a/sys/dev/sound/pcm/channel.c +++ b/sys/dev/sound/pcm/channel.c @@ -530,7 +530,7 @@ chn_poll(struct pcm_channel *c, int ev, struct thread *td) if (chn_polltrigger(c) && chn_pollreset(c)) ret = ev; else - selrecord(curthread, sndbuf_getsel(bs)); + selrecord(td, sndbuf_getsel(bs)); return ret; } diff --git a/sys/dev/usb/usb.c b/sys/dev/usb/usb.c index 9457ef2..cf2f20b 100644 --- a/sys/dev/usb/usb.c +++ b/sys/dev/usb/usb.c @@ -562,7 +562,7 @@ usbpoll(dev, events, td) revents |= events & mask; if (revents == 0 && (events & mask)) { DPRINTFN(2,("usb: sleeping on %p\n", &usb_selevent)); - selrecord(curthread, &usb_selevent); + selrecord(td, &usb_selevent); } splx(s); |