Avoid triggering lockdep checker in ath_hw_reset()
authorproski <proski@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Sun, 12 Apr 2009 05:53:23 +0000 (05:53 +0000)
committerproski <proski@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Sun, 12 Apr 2009 05:53:23 +0000 (05:53 +0000)
commitb424bc2d8b52faf1b572c0d98e6b977f43552739
tree766ecd3e731de42556a0a05e87752c71dc3aadb8
parent407bde2595e2b30d3288648c4e0d0b1888d3035d
Avoid triggering lockdep checker in ath_hw_reset()

Use spin_lock_irqsave_nested() instead of spin_lock_irqsave().  Use a
separate counter for the locking subclass, so that we don't exceed the
maximal value of 8.  We have 10 queues, but inactive queues don't get a
locking subclass number.

Provide a replacement for spin_lock_irqsave_nested() for kernels older
than 2.6.19.

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3995 0192ed92-7a03-0410-a25b-9323aeb14dbd
ath/if_ath.c
include/compat.h