]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: smp-cps: use CPC core-other locking
authorPaul Burton <paul.burton@imgtec.com>
Fri, 7 Mar 2014 10:42:52 +0000 (10:42 +0000)
committerPaul Burton <paul.burton@imgtec.com>
Wed, 28 May 2014 15:20:30 +0000 (16:20 +0100)
commita016d3e4eb2266d9d395fb8fcb0e78e03fd30152
treee46190f57b2f17a0b9f8d67f09c1670f6e5c1eaa
parent93e55bcdba595fcfb8f8e253d0149ec56b0d9da5
MIPS: smp-cps: use CPC core-other locking

The core which the CPC core-other region relates to is based upon the
core-local core-other addressing register. As its name suggests this
register is shared between all VPEs within a core, and if there is a
possibility that multiple VPEs within a core will attempt to access
another core simultaneously then locking is required. This wasn't
previously a problem with the only user being cpu0 during boot, but will
be an issue once hotplug is implemented & may race with other users such
as cpuidle.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
arch/mips/kernel/smp-cps.c