aboutsummaryrefslogtreecommitdiffstats
path: root/net/nfc/llcp
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2012-10-02 19:01:31 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2012-10-02 19:01:31 -0400
commit916082b073ebb7f4e064cebce0768e34cacde508 (patch)
tree8a8037ebbaaffb2336ac4526a7f87ac9a22aeafd /net/nfc/llcp
parentaecdc33e111b2c447b622e287c6003726daa1426 (diff)
workqueue: avoid using deprecated functions
The network merge brought in a few users of functions that got deprecated by the workqueue cleanups: the 'system_nrt_wq' is now the same as the regular system_wq, since all workqueues are now non- reentrant. Similarly, remove one use of flush_work_sync() - the regular flush_work() has become synchronous, and the "_sync()" version is thus deprecated as being superfluous. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'net/nfc/llcp')
-rw-r--r--net/nfc/llcp/llcp.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/net/nfc/llcp/llcp.c b/net/nfc/llcp/llcp.c
index c12c5ef3d036..cc10d073c338 100644
--- a/net/nfc/llcp/llcp.c
+++ b/net/nfc/llcp/llcp.c
@@ -181,7 +181,7 @@ static void nfc_llcp_symm_timer(unsigned long data)
181 181
182 pr_err("SYMM timeout\n"); 182 pr_err("SYMM timeout\n");
183 183
184 queue_work(system_nrt_wq, &local->timeout_work); 184 schedule_work(&local->timeout_work);
185} 185}
186 186
187struct nfc_llcp_local *nfc_llcp_find_local(struct nfc_dev *dev) 187struct nfc_llcp_local *nfc_llcp_find_local(struct nfc_dev *dev)
@@ -1101,7 +1101,7 @@ static void nfc_llcp_rx_work(struct work_struct *work)
1101 1101
1102 } 1102 }
1103 1103
1104 queue_work(system_nrt_wq, &local->tx_work); 1104 schedule_work(&local->tx_work);
1105 kfree_skb(local->rx_pending); 1105 kfree_skb(local->rx_pending);
1106 local->rx_pending = NULL; 1106 local->rx_pending = NULL;
1107 1107
@@ -1120,7 +1120,7 @@ void nfc_llcp_recv(void *data, struct sk_buff *skb, int err)
1120 1120
1121 local->rx_pending = skb_get(skb); 1121 local->rx_pending = skb_get(skb);
1122 del_timer(&local->link_timer); 1122 del_timer(&local->link_timer);
1123 queue_work(system_nrt_wq, &local->rx_work); 1123 schedule_work(&local->rx_work);
1124 1124
1125 return; 1125 return;
1126} 1126}
@@ -1135,7 +1135,7 @@ int nfc_llcp_data_received(struct nfc_dev *dev, struct sk_buff *skb)
1135 1135
1136 local->rx_pending = skb_get(skb); 1136 local->rx_pending = skb_get(skb);
1137 del_timer(&local->link_timer); 1137 del_timer(&local->link_timer);
1138 queue_work(system_nrt_wq, &local->rx_work); 1138 schedule_work(&local->rx_work);
1139 1139
1140 return 0; 1140 return 0;
1141} 1141}
@@ -1170,7 +1170,7 @@ void nfc_llcp_mac_is_up(struct nfc_dev *dev, u32 target_idx,
1170 if (rf_mode == NFC_RF_INITIATOR) { 1170 if (rf_mode == NFC_RF_INITIATOR) {
1171 pr_debug("Queueing Tx work\n"); 1171 pr_debug("Queueing Tx work\n");
1172 1172
1173 queue_work(system_nrt_wq, &local->tx_work); 1173 schedule_work(&local->tx_work);
1174 } else { 1174 } else {
1175 mod_timer(&local->link_timer, 1175 mod_timer(&local->link_timer,
1176 jiffies + msecs_to_jiffies(local->remote_lto)); 1176 jiffies + msecs_to_jiffies(local->remote_lto));