Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Mar 2002 08:07:27 -0800 (PST)
From:      Jake Burkholder <jake@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 8373 for review
Message-ID:  <200203251607.g2PG7RO34040@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://people.freebsd.org/~peter/p4db/chv.cgi?CH=8373

Change 8373 by jake@jake_sparc64 on 2002/03/25 08:06:45

	Revert last.  Should have stayed in my branch.

Affected files ...

... //depot/projects/sparc64/sys/sys/runq.h#5 edit

Differences ...

==== //depot/projects/sparc64/sys/sys/runq.h#5 (text+ko) ====

@@ -29,8 +29,6 @@
 #ifndef	_RUNQ_H_
 #define	_RUNQ_H_
 
-#include <machine/runq.h>
-
 struct kse;
 
 /*
@@ -40,6 +38,19 @@
 #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.
  */

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe p4-projects" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200203251607.g2PG7RO34040>