arch/sparc: Enable queued spinlock support for SPARC
authorBabu Moger <babu.moger@oracle.com>
Wed, 24 May 2017 23:55:15 +0000 (17:55 -0600)
committerDavid S. Miller <davem@davemloft.net>
Thu, 25 May 2017 19:06:52 +0000 (12:06 -0700)
commit145d978585977438ebb55079487827006c604e39
tree8c2db73ea429d948a46c6b8577ce6c40a3fd18bd
parent79d39e2bab60d18a68a5abc00be4506864397efc
arch/sparc: Enable queued spinlock support for SPARC

This patch makes the necessary changes in SPARC architecture to enable
queued spinlock support. Here are some of the earlier discussions about
this feature.
https://lwn.net/Articles/561775/
https://lwn.net/Articles/590243/

Cleaned-up the spinlock_64.h. The definitions of arch_spin_xxx are
replaced by the function in <asm-generic/qspinlock.h>

Signed-off-by: Babu Moger <babu.moger@oracle.com>
Reviewed-by: HÃ¥kon Bugge <haakon.bugge@oracle.com>
Reviewed-by: Jane Chu <jane.chu@oracle.com>
Reviewed-by: Shannon Nelson <shannon.nelson@oracle.com>
Reviewed-by: Vijay Kumar <vijay.ac.kumar@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/Kconfig
arch/sparc/include/asm/qspinlock.h [new file with mode: 0644]
arch/sparc/include/asm/spinlock_64.h
arch/sparc/include/asm/spinlock_types.h