]> git.baikalelectronics.ru Git - kernel.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)
commit56903007c0e3646780a4f102666a11fdf5684550
tree38465ea53d1861c7583193b7bb031b20bf05c453
parent8124e1e2ca6674895dd2941bd7237e85ee0da9af
[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