summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/amso1100
diff options
context:
space:
mode:
authorRoland Dreier2009-09-06 05:24:23 +0200
committerRoland Dreier2009-09-06 05:24:23 +0200
commit6276e08a9bdf645b71a092fb4530baf4f6c4c6eb (patch)
treed9132ced4e91d02230df2ee4d0cef5a89ec2c477 /drivers/infiniband/hw/amso1100
parentLinux 2.6.31-rc9 (diff)
downloadkernel-qcow2-linux-6276e08a9bdf645b71a092fb4530baf4f6c4c6eb.tar.gz
kernel-qcow2-linux-6276e08a9bdf645b71a092fb4530baf4f6c4c6eb.tar.xz
kernel-qcow2-linux-6276e08a9bdf645b71a092fb4530baf4f6c4c6eb.zip
IB: Use DEFINE_SPINLOCK() for static spinlocks
Rather than just defining static spinlock_t variables and then initializing them later in init functions, simply define them with DEFINE_SPINLOCK() and remove the calls to spin_lock_init(). This cleans up the source a tad and also shrinks the compiled code; eg on x86-64: add/remove: 0/0 grow/shrink: 0/3 up/down: 0/-40 (-40) function old new delta ib_uverbs_init 336 326 -10 ib_mad_init_module 147 137 -10 ib_sa_init 123 103 -20 Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/hw/amso1100')
0 files changed, 0 insertions, 0 deletions