summaryrefslogtreecommitdiff
path: root/sys/powerpc/include/runq.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/powerpc/include/runq.h')
-rw-r--r--sys/powerpc/include/runq.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/powerpc/include/runq.h b/sys/powerpc/include/runq.h
index 1ea7735631bc..2a21bfa4ca29 100644
--- a/sys/powerpc/include/runq.h
+++ b/sys/powerpc/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.