aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-bit.c
diff options
context:
space:
mode:
authorBabu Moger <[email protected]>2017-05-24 17:55:14 -0600
committerDavid S. Miller <[email protected]>2017-05-25 12:06:51 -0700
commit79d39e2bab60d18a68a5abc00be4506864397efc (patch)
tree91e5e323937b20523c5d0f59e80fb81ecff74518 /lib/mpi/mpi-bit.c
parenta37594f198363fd9321ece54440336fd4b2a9c8e (diff)
arch/sparc: Introduce xchg16 for SPARC
SPARC supports 32 bit and 64 bit xchg right now. Add the support for 16 bit (2 byte) xchg. This is required to support queued spinlock feature which uses 2 byte xchg. This is achieved using 4 byte cas instructions with byte manipulations. Also re-arranged the code to call __cmpxchg_u32 inside xchg16. Signed-off-by: Babu Moger <[email protected]> Reviewed-by: HÃ¥kon Bugge <[email protected]> Reviewed-by: Steven Sistare <[email protected]> Reviewed-by: Shannon Nelson <[email protected]> Reviewed-by: Jane Chu <[email protected]> Reviewed-by: Vijay Kumar <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-bit.c')
0 files changed, 0 insertions, 0 deletions