aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/runq.h
diff options
context:
space:
mode:
authorJake Burkholder <jake@FreeBSD.org>2002-05-25 01:12:23 +0000
committerJake Burkholder <jake@FreeBSD.org>2002-05-25 01:12:23 +0000
commitd2ac231616f04bd63795021f23d324351a24788b (patch)
tree291c292aac96d7cbab66993c354579293c25e83b /sys/sys/runq.h
parent76a4ef69bc2a726b7e3e4e47b03eae4c3320c7ed (diff)
downloadsrc-d2ac231616f04bd63795021f23d324351a24788b.tar.gz
src-d2ac231616f04bd63795021f23d324351a24788b.zip
Make the run queue parameters machine dependent. Optimize 64 bit
architectures by using a 64 bit word for the bit array which keeps track of non-empty queues. Reviewed by: peter
Notes
Notes: svn path=/head/; revision=97261
Diffstat (limited to 'sys/sys/runq.h')
-rw-r--r--sys/sys/runq.h15
1 files changed, 2 insertions, 13 deletions
diff --git a/sys/sys/runq.h b/sys/sys/runq.h
index 4636e7a10252..a89d844b3858 100644
--- a/sys/sys/runq.h
+++ b/sys/sys/runq.h
@@ -29,6 +29,8 @@
#ifndef _RUNQ_H_
#define _RUNQ_H_
+#include <machine/runq.h>
+
struct kse;
/*
@@ -38,19 +40,6 @@ struct kse;
#define RQ_NQS (64) /* Number of run queues. */
#define RQ_PPQ (4) /* Priorities per queue. */
-#define RQB_LEN (2) /* Number of priority status words. */
-#define RQB_L2BPW (5) /* Log2(sizeof(rqb_word_t) * NBBY)). */
-#define RQB_BPW (1<<RQB_L2BPW) /* Bits in an rqb_word_t. */
-
-#define RQB_BIT(pri) (1 << ((pri) & (RQB_BPW - 1)))
-#define RQB_WORD(pri) ((pri) >> RQB_L2BPW)
-#define RQB_FFS(word) (ffs(word))
-
-/*
- * Type of run queue status word.
- */
-typedef u_int32_t rqb_word_t;
-
/*
* Head of run queues.
*/