]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[ARM] fix VIPT/VIVT macro optimisations, add comments
authorRussell King <rmk@dyn-67.arm.linux.org.uk>
Sun, 27 Jul 2008 09:10:58 +0000 (10:10 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 27 Jul 2008 09:10:58 +0000 (10:10 +0100)
commitdaf93dd55c48b65ab2f1907e0fc5ef994896c787
tree38465ea53d1861c7583193b7bb031b20bf05c453
parent6cab48602996cdbcb277375a8107d53e21e8c9b9
[ARM] fix VIPT/VIVT macro optimisations, add comments

cacheflush.h was doing:

... VIVT only stuff
... VIPT only stuff
... VIVT or VIPT stuff

which is clearly bogus - we would only ever use the "VIVT or VIPT" case
when both VIVT and VIPT are not selected.  Fix this.

Add comments to each case, including noting the impossibility of
correctly detecting the cache type of ARM926 and ARMv6 cores from
the cache type register in the "VIVT or VIPT" case.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
include/asm-arm/cacheflush.h