From: David S. Miller Date: Wed, 27 Jul 2005 23:08:44 +0000 (-0700) Subject: [SPARC64]: Fix ugly dependency on NR_CPUS being a power-of-2. X-Git-Tag: v2.6.13-rc4~25^2~1^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=48b0e5487fcdcb3421bda67666277348b2bd2661;p=pandora-kernel.git [SPARC64]: Fix ugly dependency on NR_CPUS being a power-of-2. 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 --- Reading git-diff-tree failed