]> git.karo-electronics.de Git - karo-tx-linux.git/commit
x86, ticketlock: Make __ticket_spin_lock common
authorJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Fri, 24 Jun 2011 01:19:17 +0000 (18:19 -0700)
committerH. Peter Anvin <hpa@linux.intel.com>
Fri, 22 Jul 2011 18:18:44 +0000 (11:18 -0700)
commit65bd26616b53c5dfab162f18c34ec57ddb682a00
treefca3fb2c24f6faa1c8bd1f906fc46f04b526fc40
parentdc126c03ca25de516eaa8e575a98b81382d6d4b4
x86, ticketlock: Make __ticket_spin_lock common

Aside from the particular form of the xadd instruction, they're identical.
So factor out the xadd and use common code for the rest.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Link: http://lkml.kernel.org/r/11b6893703912054024bdb60251ed944f31cbafe.1308878118.git.jeremy.fitzhardinge@citrix.com
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/include/asm/spinlock.h