Home
last modified time | relevance | path

Searched hist:"489 e0f802db708c69004f64d92a3e1b70731614a" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/arch/openrisc/include/asm/
H A Dcmpxchg.hdiff 489e0f802db708c69004f64d92a3e1b70731614a Thu Mar 23 09:27:12 CDT 2017 Stafford Horne <shorne@gmail.com> openrisc: add 1 and 2 byte cmpxchg support

OpenRISC only supports hardware instructions that perform 4 byte atomic
operations. For enabling qrwlocks for upcoming SMP support 1 and 2 byte
implementations are needed. To do this we leverage the 4 byte atomic
operations and shift/mask the 1 and 2 byte areas as needed.

This heavily borrows ideas and routines from sh and mips, which do
something similar.

Cc: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Stafford Horne <shorne@gmail.com>