ARM: 7606/1: cache: flush to LoUU instead of LoUIS on uniprocessor CPUs
authorWill Deacon <will.deacon@arm.com>
Wed, 19 Dec 2012 14:01:08 +0000 (15:01 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 20 Dec 2012 10:41:56 +0000 (10:41 +0000)
commitd056a699dd3d9366dd3b4d9996e7848209199cda
tree158528d22412216c33487e57d40f76d64884a8be
parent7bf9b7bef881aac820bf1f2e9951a17b09bd7e04
ARM: 7606/1: cache: flush to LoUU instead of LoUIS on uniprocessor CPUs

flush_cache_louis flushes the D-side caches to the point of unification
inner-shareable. On uniprocessor CPUs, this is defined as zero and
therefore no flushing will take place. Rather than invent a new interface
for UP systems, instead use our SMP_ON_UP patching code to read the
LoUU from the CLIDR instead.

Cc: <stable@vger.kernel.org>
Cc: Lorenzo Pieralisi <Lorenzo.Pieralisi@arm.com>
Tested-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mm/cache-v7.S