PERFORCE change 43334 for review
Peter Wemm
peter at FreeBSD.org
Tue Dec 2 17:26:52 PST 2003
http://perforce.freebsd.org/chv.cgi?CH=43334
Change 43334 by peter at 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
More information about the p4-projects
mailing list