[RFC PATCH 5/8] Convert net wireless tasklet to workqueue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Since we want to remove DECLARE_TASKLET API, there wasn't a simple way
to do that elegantly with net/core/wireless.c, so this patch just
replaces that tasklet with a work queue directly.

Signed-off-by: Steven Rostedt <[email protected]>


Index: linux-2.6-test/net/core/wireless.c
===================================================================
--- linux-2.6-test.orig/net/core/wireless.c
+++ linux-2.6-test/net/core/wireless.c
@@ -1916,7 +1916,7 @@ static int __init wireless_nlevent_init(
 
 subsys_initcall(wireless_nlevent_init);
 
-static void wireless_nlevent_process(unsigned long data)
+static void wireless_nlevent_process(struct work_struct *work)
 {
 	struct sk_buff *skb;
 
@@ -1924,7 +1924,7 @@ static void wireless_nlevent_process(uns
 		rtnl_notify(skb, 0, RTNLGRP_LINK, NULL, GFP_ATOMIC);
 }
 
-static DECLARE_TASKLET(wireless_nlevent_tasklet, wireless_nlevent_process, 0);
+static DECLARE_WORK(wireless_nlevent_wq, wireless_nlevent_process);
 
 /* ---------------------------------------------------------------- */
 /*
@@ -1989,7 +1989,7 @@ static inline void rtmsg_iwinfo(struct n
 	}
 	NETLINK_CB(skb).dst_group = RTNLGRP_LINK;
 	skb_queue_tail(&wireless_nlevent_queue, skb);
-	tasklet_schedule(&wireless_nlevent_tasklet);
+	schedule_work(&wireless_nlevent_wq);
 }
 
 #endif	/* WE_EVENT_RTNETLINK */

-- 
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux