]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: SMP enable of cache maintanence broadcast
authorRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 29 Mar 2016 10:08:22 +0000 (11:08 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 1 Apr 2016 22:27:47 +0000 (23:27 +0100)
commitb9ba187b51685a5e47d104a51c64b57362983750
tree5e33af3bf03f264863b65906680db6a2ca4e4b35
parent3039f62d3fccb077513a4ffae4d1ef4609c1b724
ARM: SMP enable of cache maintanence broadcast

Masahiro Yamada reports that we can fail to set the FW bit in the
auxiliary control register, which enables broadcasting the cache
maintanence operations.  This occurs because we only check that the
SMP/nAMP bit is set, rather than checking whether all the bits we
want to be set are set.

Rearrange the code to ensure that all desired bits are set, and only
update the register if we discover some required bits are not set.

Tested-by: Masahiro Yamada <yamada.masahiro@socionext.com>
arch/arm/mm/proc-v7.S