From: Roland Dreier Date: Sun, 6 Sep 2009 03:24:23 +0000 (-0700) Subject: IB: Use DEFINE_SPINLOCK() for static spinlocks X-Git-Tag: v2.6.32-rc1~736^2~1^5~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6276e08a9bdf645b71a092fb4530baf4f6c4c6eb;p=pandora-kernel.git 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 --- Reading git-diff-tree failed