Let's introduce a simple generic version that should be sufficient for our purposes. v1 -> v2: - use __sync_lock_test_and_set() and __sync_lock_release() -- dropped Thomas' R-b due to the change - move includes into #define section David Hildenbrand (3): lib: provide generic spinlock ppc64: use asm-generic spinlock x86: use asm-generic spinlock lib/asm-generic/spinlock.h | 16 +++++++++++++++- lib/ppc64/asm/spinlock.h | 7 +------ lib/ppc64/spinlock.c | 18 ------------------ lib/x86/asm/spinlock.h | 7 +------ lib/x86/smp.c | 16 ---------------- powerpc/Makefile.ppc64 | 1 - 6 files changed, 17 insertions(+), 48 deletions(-) delete mode 100644 lib/ppc64/spinlock.c -- 2.9.3