diff options
author | Roland Dreier <rolandd@cisco.com> | 2009-09-05 23:24:23 -0400 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2009-09-05 23:24:23 -0400 |
commit | 6276e08a9bdf645b71a092fb4530baf4f6c4c6eb (patch) | |
tree | d9132ced4e91d02230df2ee4d0cef5a89ec2c477 /drivers/net/igb | |
parent | e07cccf4046978df10f2e13fe2b99b2f9b3a65db (diff) |
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/net/igb')
0 files changed, 0 insertions, 0 deletions