]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: Octeon: Check all CCAs in cvmx_write_csr.
authorDavid Daney <ddaney@caviumnetworks.com>
Thu, 20 Aug 2009 19:35:53 +0000 (12:35 -0700)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 17 Sep 2009 18:07:41 +0000 (20:07 +0200)
commit60ec3e310106e0377cb54b9a40fba4acd16cf2aa
tree3de2da4f8598bad184d544cc7ca88711816de165
parenta37f5a6e97d700143c32615fa3a200593361849a
MIPS: Octeon: Check all CCAs in cvmx_write_csr.

The current code only checks CCA of 0 when deciding if a dummy read is
needed.  Since the kernel can (and does) use other CCAs we need to
mask out the CCA bits from the address.  Since the address constant
now fits in 16 bits, there is an added benefit that smaller code is
generated.

Signed-off-by: David Daney <ddaney@caviumnetworks.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/octeon/cvmx.h