Skip to content

Commit 97eeebe

Browse files
ldr709Paul E. McKenney
authored andcommitted
smsc: Replace spin_is_locked() with lockdep
lockdep_assert_held() is better suited to checking locking requirements, since it only checks if the current thread holds the lock regardless of whether someone else does. This is also a step towards possibly removing spin_is_locked(). Signed-off-by: Lance Roy <ldr709@gmail.com> Cc: Steve Glendinning <steve.glendinning@shawell.net> Cc: "David S. Miller" <davem@davemloft.net> Cc: <netdev@vger.kernel.org> Signed-off-by: Paul E. McKenney <paulmck@linux.ibm.com>
1 parent 013ff4a commit 97eeebe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/net/ethernet/smsc/smsc911x.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767

6868
#ifdef CONFIG_DEBUG_SPINLOCK
6969
#define SMSC_ASSERT_MAC_LOCK(pdata) \
70-
WARN_ON_SMP(!spin_is_locked(&pdata->mac_lock))
70+
lockdep_assert_held(&pdata->mac_lock)
7171
#else
7272
#define SMSC_ASSERT_MAC_LOCK(pdata) do {} while (0)
7373
#endif /* CONFIG_DEBUG_SPINLOCK */

0 commit comments

Comments
 (0)