[kvm-unit-tests PATCH v2 0/3] provide asm-generic spinlock

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux