diff options
author | Paul Burton <paul.burton@imgtec.com> | 2017-06-09 17:26:40 -0700 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2017-06-29 02:42:25 +0200 |
commit | 3ba7f44d2b19166b34031db48ce613d1bddbd384 (patch) | |
tree | 973693babaf2dd5eee8646c084e155e7b30f1adb /arch/mips/lasat/Kconfig | |
parent | b70eb30056dc84568f3d32440d9be6a558025843 (diff) | |
download | lwn-3ba7f44d2b19166b34031db48ce613d1bddbd384.tar.gz lwn-3ba7f44d2b19166b34031db48ce613d1bddbd384.zip |
MIPS: cmpxchg: Implement 1 byte & 2 byte cmpxchg()
Implement support for 1 & 2 byte cmpxchg() using read-modify-write atop
a 4 byte cmpxchg(). This allows us to support these atomic operations
despite the MIPS ISA only providing 4 & 8 byte atomic operations.
This is required in order to support queued rwlocks (qrwlock) in a later
patch, since these make use of a 1 byte cmpxchg() in their slow path.
Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/16355/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/lasat/Kconfig')
0 files changed, 0 insertions, 0 deletions