git: spinlocks - Rename API to spin_{try,un,}lock

Alex Hornung alexh at crater.dragonflybsd.org
Mon Aug 30 03:37:04 PDT 2010


commit 287a8577e957397b9bd7fb30761c71300859ba15
Author: Alex Hornung <ahornung at gmail.com>
Date:   Mon Aug 30 11:10:17 2010 +0100

    spinlocks - Rename API to spin_{try,un,}lock
    
    * Rename the API to spin_trylock, spin_unlock and spin_lock instead of
      spin_lock_wr, spin_unlock_wr and spin_trylock_wr now that we only have
      exclusive spinlocks.
    
    * 99% of this patch was generated by a semantic coccinelle patch

Summary of changes:
 sys/bus/cam/cam_xpt.c                            |   24 ++--
 sys/bus/pci/i386/pci_cfgreg.c                    |    4 +-
 sys/bus/pci/x86_64/pci_cfgreg.c                  |    4 +-
 sys/crypto/aesni/aesni.c                         |   26 ++--
 sys/crypto/via/padlock.c                         |   26 ++--
 sys/dev/acpica5/Osd/OsdSynch.c                   |    8 +-
 sys/dev/crypto/glxsb/glxsb.c                     |   32 ++--
 sys/dev/disk/nata/ata-all.c                      |   24 ++--
 sys/dev/disk/nata/ata-chipset.c                  |   22 +-
 sys/dev/disk/nata/ata-queue.c                    |   60 +++---
 sys/dev/disk/nata/ata-raid.c                     |   12 +-
 sys/dev/disk/nata/ata-usb.c                      |    6 +-
 sys/dev/disk/nata/atapi-cam.c                    |   36 ++--
 sys/dev/misc/syscons/syscons.c                   |    6 +-
 sys/dev/netif/e1000/e1000_osdep.h                |    6 +-
 sys/dev/netif/e1000/if_em.h                      |   14 +-
 sys/dev/netif/e1000/if_igb.h                     |   14 +-
 sys/dev/raid/twa/tw_osl.h                        |   16 +-
 sys/dev/raid/twa/tw_osl_freebsd.c                |   16 +-
 sys/dev/raid/twa/tw_osl_inline.h                 |    4 +-
 sys/emulation/linux/linux_futex.c                |    4 +-
 sys/kern/kern_ccms.c                             |   12 +-
 sys/kern/kern_condvar.c                          |    8 +-
 sys/kern/kern_descrip.c                          |  212 +++++++++++-----------
 sys/kern/kern_environment.c                      |   24 ++--
 sys/kern/kern_ktr.c                              |    8 +-
 sys/kern/kern_lock.c                             |   34 ++--
 sys/kern/kern_lockf.c                            |    8 +-
 sys/kern/kern_nrandom.c                          |   24 ++--
 sys/kern/kern_objcache.c                         |   52 +++---
 sys/kern/kern_plimit.c                           |   54 +++---
 sys/kern/kern_resource.c                         |   26 ++--
 sys/kern/kern_sensors.c                          |   24 ++--
 sys/kern/kern_spinlock.c                         |    8 +-
 sys/kern/kern_syslink.c                          |   62 +++---
 sys/kern/kern_sysref.c                           |   12 +-
 sys/kern/kern_wdog.c                             |   16 +-
 sys/kern/lwkt_msgport.c                          |   30 ++--
 sys/kern/subr_prf.c                              |    4 +-
 sys/kern/subr_taskqueue.c                        |    4 +-
 sys/kern/sys_process.c                           |   12 +-
 sys/kern/uipc_usrreq.c                           |   26 ++--
 sys/kern/usched_bsd4.c                           |   26 ++--
 sys/kern/usched_dummy.c                          |   22 +-
 sys/kern/vfs_bio.c                               |  130 +++++++-------
 sys/kern/vfs_cache.c                             |  106 ++++++------
 sys/kern/vfs_journal.c                           |   12 +-
 sys/kern/vfs_lock.c                              |   38 ++--
 sys/kern/vfs_mount.c                             |    6 +-
 sys/kern/vfs_subr.c                              |    4 +-
 sys/kern/vfs_syscalls.c                          |   14 +-
 sys/kern/vfs_vm.c                                |    4 +-
 sys/netproto/smb/smb_subr.h                      |    4 +-
 sys/opencrypto/cryptosoft.c                      |   30 ++--
 sys/platform/pc32/i386/busdma_machdep.c          |    8 +-
 sys/platform/pc64/x86_64/busdma_machdep.c        |    8 +-
 sys/platform/vkernel/platform/busdma_machdep.c   |    4 +-
 sys/platform/vkernel64/platform/busdma_machdep.c |    4 +-
 sys/sys/spinlock2.h                              |    8 +-
 sys/vfs/devfs/devfs_core.c                       |    4 +-
 sys/vfs/ntfs/ntfs_subr.c                         |   16 +-
 sys/vfs/procfs/procfs_vnops.c                    |   18 +-
 sys/vfs/tmpfs/tmpfs_subr.c                       |    4 +-
 sys/vm/swap_pager.c                              |    4 +-
 sys/vm/vm_pager.c                                |   24 ++--
 sys/vm/vm_zone.c                                 |   14 +-
 66 files changed, 768 insertions(+), 768 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/287a8577e957397b9bd7fb30761c71300859ba15


-- 
DragonFly BSD source repository





More information about the Commits mailing list