diff options
author | jhb <jhb@FreeBSD.org> | 2004-03-12 19:06:18 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2004-03-12 19:06:18 +0000 |
commit | c754b5af4765745790fa2703782920375410ba08 (patch) | |
tree | d0d728973ba60a3d4ff65c79d64db034a4d360d3 /sys/kern/kern_synch.c | |
parent | 6103cfbeb58b0d8dfa81f7dccda676cb1f6dbd2b (diff) | |
download | FreeBSD-src-c754b5af4765745790fa2703782920375410ba08.zip FreeBSD-src-c754b5af4765745790fa2703782920375410ba08.tar.gz |
- Remove old sleep queues.
- Remove sleepqueue argument from sleepq_set_timeout() since it is not
used.
Diffstat (limited to 'sys/kern/kern_synch.c')
-rw-r--r-- | sys/kern/kern_synch.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/sys/kern/kern_synch.c b/sys/kern/kern_synch.c index 89c6bbc..4c29e5d 100644 --- a/sys/kern/kern_synch.c +++ b/sys/kern/kern_synch.c @@ -99,23 +99,11 @@ SYSCTL_INT(_kern, OID_AUTO, fscale, CTLFLAG_RD, 0, FSCALE, ""); static void loadav(void *arg); static void lboltcb(void *arg); -/* - * We're only looking at 7 bits of the address; everything is - * aligned to 4, lots of things are aligned to greater powers - * of 2. Shift right by 8, i.e. drop the bottom 256 worth. - */ -#define TABLESIZE 128 -static TAILQ_HEAD(slpquehead, thread) slpque[TABLESIZE]; -#define LOOKUP(x) (((intptr_t)(x) >> 8) & (TABLESIZE - 1)) - void sleepinit(void) { - int i; hogticks = (hz / 10) * 2; /* Default only. */ - for (i = 0; i < TABLESIZE; i++) - TAILQ_INIT(&slpque[i]); init_sleepqueues(); } @@ -236,7 +224,7 @@ msleep(ident, mtx, priority, wmesg, timo) */ sleepq_add(sq, ident, mtx, wmesg, 0); if (timo) - sleepq_set_timeout(sq, ident, timo); + sleepq_set_timeout(ident, timo); if (catch) { sig = sleepq_catch_signals(ident); if (sig == 0 && !TD_ON_SLEEPQ(td)) { |