diff options
author | David S. Miller <davem@davemloft.net> | 2008-07-09 02:13:53 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-07-09 02:13:53 -0400 |
commit | c773e847ea8f6812804e40f52399c6921a00eab1 (patch) | |
tree | 952e0e262cc0b0f2136bc2a62938ae1d186f896a /drivers/net/wireless/hostap | |
parent | eb6aafe3f843cb0e939546c03540a3b4911b6964 (diff) |
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 <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wireless/hostap')
-rw-r--r-- | drivers/net/wireless/hostap/hostap_hw.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/drivers/net/wireless/hostap/hostap_hw.c b/drivers/net/wireless/hostap/hostap_hw.c index 09004a632ae7..c1f4bb005d92 100644 --- a/drivers/net/wireless/hostap/hostap_hw.c +++ b/drivers/net/wireless/hostap/hostap_hw.c | |||
@@ -3102,6 +3102,16 @@ static void prism2_clear_set_tim_queue(local_info_t *local) | |||
3102 | */ | 3102 | */ |
3103 | static struct lock_class_key hostap_netdev_xmit_lock_key; | 3103 | static struct lock_class_key hostap_netdev_xmit_lock_key; |
3104 | 3104 | ||
3105 | static void prism2_set_lockdep_class_one(struct netdev_queue *txq) | ||
3106 | { | ||
3107 | lockdep_set_class(&txq->_xmit_lock, | ||
3108 | &hostap_netdev_xmit_lock_key); | ||
3109 | } | ||
3110 | |||
3111 | static void prism2_set_lockdep_class(struct net_device *dev) | ||
3112 | { | ||
3113 | prism2_set_lockdep_class_one(&dev->tx_queue); | ||
3114 | } | ||
3105 | 3115 | ||
3106 | static struct net_device * | 3116 | static struct net_device * |
3107 | prism2_init_local_data(struct prism2_helper_functions *funcs, int card_idx, | 3117 | prism2_init_local_data(struct prism2_helper_functions *funcs, int card_idx, |
@@ -3268,7 +3278,7 @@ while (0) | |||
3268 | if (ret >= 0) | 3278 | if (ret >= 0) |
3269 | ret = register_netdevice(dev); | 3279 | ret = register_netdevice(dev); |
3270 | 3280 | ||
3271 | lockdep_set_class(&dev->_xmit_lock, &hostap_netdev_xmit_lock_key); | 3281 | prism2_set_lockdep_class(dev); |
3272 | rtnl_unlock(); | 3282 | rtnl_unlock(); |
3273 | if (ret < 0) { | 3283 | if (ret < 0) { |
3274 | printk(KERN_WARNING "%s: register netdevice failed!\n", | 3284 | printk(KERN_WARNING "%s: register netdevice failed!\n", |