Thread (6 messages) 6 messages, 3 authors, 2008-06-04

RE: [PATCH 2/2] sched: fix cpupri priocount

From: Rune Torgersen <hidden>
Date: 2008-06-04 21:33:45
Also in: lkml

quoted
-#define CPUPRI_NR_PRI_WORDS CPUPRI_NR_PRIORITIES/BITS_PER_LONG
+#define CPUPRI_NR_PRI_WORDS (CPUPRI_NR_PRIORITIES + >
BITS_PER_LONG/2)/BITS_PER_LONG
(33 + 16) / 32 = 49 / 32 = 1
It should not round to neares but round up....
So... #define CPUPRI_NR_PRI_WORDS (CPUPRI_NR_PRIORITIES + BITS_PER_LONG
- 1)/BITS_PER_LONG

=> (33+31)/32 = 64/32 = 2
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help