ARM: 7489/1: errata: fix workaround for erratum #720789 on UP systems
commit730a8128cd8978467eb1cf546b11014acb57d433
authorWill Deacon <will.deacon@arm.com>
Fri, 10 Aug 2012 18:13:36 +0000 (10 19:13 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 11 Aug 2012 08:16:00 +0000 (11 09:16 +0100)
tree010d027425130eb77c868c69365d6b0eb1c5a604
parentf5f2025ef3e2cdb593707cbf87378761f17befbe
ARM: 7489/1: errata: fix workaround for erratum #720789 on UP systems

Commit 5a783cbc4836 ("ARM: 7478/1: errata: extend workaround for erratum
 #720789") added workarounds for erratum #720789 to the range TLB
invalidation functions with the observation that the erratum only
affects SMP platforms. However, when running an SMP_ON_UP kernel on a
uniprocessor platform we must take care to preserve the ASID as the
workaround is not required.

This patch ensures that we don't set the ASID to 0 when flushing the TLB
on such a system, preserving the original behaviour with the workaround
disabled.

Cc: <stable@vger.kernel.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mm/tlb-v7.S