Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Dec 2003 17:26:50 -0800 (PST)
From:      Peter Wemm <peter@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 43334 for review
Message-ID:  <200312030126.hB31QoKU091769@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=43334

Change 43334 by peter@peter_overcee on 2003/12/02 17:26:48

	in theory, cause the double-ffs operations for the 64 run queues
	to be done with one ffsl rather than two ffs operations and a loop.

Affected files ...

.. //depot/projects/hammer/sys/amd64/include/runq.h#5 edit

Differences ...

==== //depot/projects/hammer/sys/amd64/include/runq.h#5 (text+ko) ====

@@ -29,18 +29,18 @@
 #ifndef	_MACHINE_RUNQ_H_
 #define	_MACHINE_RUNQ_H_
 
-#define	RQB_LEN		(2)		/* Number of priority status words. */
-#define	RQB_L2BPW	(5)		/* Log2(sizeof(rqb_word_t) * NBBY)). */
+#define	RQB_LEN		(1)		/* Number of priority status words. */
+#define	RQB_L2BPW	(6)		/* 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) - 1)
+#define	RQB_FFS(word)	(ffsl(word) - 1)
 
 /*
  * Type of run queue status word.
  */
-typedef	u_int32_t	rqb_word_t;
+typedef	u_int64_t	rqb_word_t;
 
 #endif



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