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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 Jan 2013 17:19:01 +0000 (09:19 -0800)
commitbbe614b3f9a1cab9cdd88ecdd9415bd3dd04efd3
tree9357917b0350e3f2b13d3314597b6896ab85b1dc
parent4faefc4ea2f866e9d924f47eacea45a114b8d0d1
ARM: 7606/1: cache: flush to LoUU instead of LoUIS on uniprocessor CPUs

commit d056a699dd3d9366dd3b4d9996e7848209199cda upstream.

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: 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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm/mm/cache-v7.S