mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
netdev: Move _xmit_lock and xmit_lock_owner into netdev_queue.
Accesses are mostly structured such that when there are multiple TX queues the code transformations will be a little bit simpler. Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
eb6aafe3f8
commit
c773e847ea
10 changed files with 145 additions and 44 deletions
|
|
@ -75,6 +75,16 @@ ax25_address rose_callsign;
|
|||
*/
|
||||
static struct lock_class_key rose_netdev_xmit_lock_key;
|
||||
|
||||
static void rose_set_lockdep_one(struct netdev_queue *txq)
|
||||
{
|
||||
lockdep_set_class(&txq->_xmit_lock, &rose_netdev_xmit_lock_key);
|
||||
}
|
||||
|
||||
static void rose_set_lockdep_key(struct net_device *dev)
|
||||
{
|
||||
rose_set_lockdep_one(&dev->tx_queue);
|
||||
}
|
||||
|
||||
/*
|
||||
* Convert a ROSE address into text.
|
||||
*/
|
||||
|
|
@ -1576,7 +1586,7 @@ static int __init rose_proto_init(void)
|
|||
free_netdev(dev);
|
||||
goto fail;
|
||||
}
|
||||
lockdep_set_class(&dev->_xmit_lock, &rose_netdev_xmit_lock_key);
|
||||
rose_set_lockdep_key(dev);
|
||||
dev_rose[i] = dev;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue