diff options
author | Anton Vorontsov <cbouatmailru@gmail.com> | 2010-06-07 21:36:30 +0400 |
---|---|---|
committer | Nicolas Pitre <nicolas.pitre@linaro.org> | 2011-03-27 22:37:23 -0400 |
commit | c4bb07ec0084e26323047bcbe446d59ac352e07f (patch) | |
tree | ec9dffc71a9786d5a47599bf7a9bc3342094bd9c /kernel/smp.c | |
parent | f461b8a322b7eea954b9f3dee139ce5bb3a6a8d0 (diff) |
ARM: Add PI/robust mutexes support for SMP kernels
To support PI or robust mutexes, the kernel needs to perform some
operations atomically on userspace addresses, and yet ARM lacked
the support for the SMP case.
ARMv6 adds exclusive access variants of ldr and str instructions,
which means that support for PI/robust mutexes should now be
relatively straightforward.
Note that with this patch, if we run ARMv6 or greater, we'll use
atomic instructions no matter if it's SMP or UP kernel (just as we
do in atomic.h).
This has been tested on an ARM11 MPCore machine (ARMv6K), but I
also plan to test it with some Cortex-A9 (ARMv7) soon.
Signed-off-by: Anton Vorontsov <avorontsov@mvista.com>
[ np -- made it conditional on !CONFIG_CPU_USE_DOMAINS ]
Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Diffstat (limited to 'kernel/smp.c')
0 files changed, 0 insertions, 0 deletions