From: Russell King Date: Thu, 25 Sep 2008 14:35:28 +0000 (+0100) Subject: [ARM] Introduce new bitmask based cache type macros X-Git-Tag: v2.6.28-rc1~293^2~9^2~26 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c0e9587841a0fd79bbf8296034faefb9afe72fb4;p=pandora-kernel.git [ARM] Introduce new bitmask based cache type macros Rather than trying to (inaccurately) decode the cache type from the registers each time we need to decide what type of cache we have, use a bitmask initialized early during boot. Since the setup is a one-off initialization, we can be a little more clever and take account of the CPU architecture as well. Note that we continue to achieve the compactness on optimised kernels by forcing tests to always-false or always-true as appropriate, thereby allowing the compiler to do build-time code elimination. Signed-off-by: Russell King --- Reading git-diff-tree failed