git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
40a085c
)
[SPARC64]: Fix ugly dependency on NR_CPUS being a power-of-2.
author
David S. Miller
<davem@davemloft.net>
Wed, 27 Jul 2005 23:08:44 +0000
(16:08 -0700)
committer
David S. Miller
<davem@davemloft.net>
Wed, 27 Jul 2005 23:08:44 +0000
(16:08 -0700)
The page->flags D-cache dirty state tracking depended upon
NR_CPUS being a power-of-2 via it's "NR_CPUS - 1" masking.
Fix that to use a fixed (256 - 1) mask as that is the limit
imposed by thread_info->cpu which is a "u8".
Finally, add a compile time check that NR_CPUS is not greater
than 256.
Signed-off-by: David S. Miller <davem@davemloft.net>
No differences found