aboutsummaryrefslogtreecommitdiff
path: root/sys/amd64/include
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>2002-06-20 06:21:20 +0000
committerPeter Wemm <peter@FreeBSD.org>2002-06-20 06:21:20 +0000
commit2f9267ec2327d71bca865a65fefdf1afa83c6778 (patch)
treebff62bbdcdfc1237d8035660837bdd0327caebd3 /sys/amd64/include
parent6953dff37c2b4b4afd29da68623434df0300d3e4 (diff)
Notes
Diffstat (limited to 'sys/amd64/include')
-rw-r--r--sys/amd64/include/runq.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/amd64/include/runq.h b/sys/amd64/include/runq.h
index 1ea7735631bce..2a21bfa4ca29f 100644
--- a/sys/amd64/include/runq.h
+++ b/sys/amd64/include/runq.h
@@ -36,7 +36,7 @@
#define RQB_BIT(pri) (1 << ((pri) & (RQB_BPW - 1)))
#define RQB_WORD(pri) ((pri) >> RQB_L2BPW)
-#define RQB_FFS(word) (ffs(word))
+#define RQB_FFS(word) (ffs(word) - 1)
/*
* Type of run queue status word.