lkml.org 
[lkml]   [2007]   [Jun]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[RFC PATCH 5/8] Convert net wireless tasklet to workqueue
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 <rostedt@goodmis.org>


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 majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2007-06-27 21:47    [from the cache]
©2003-2014 Jasper Spaans. hosted at Digital Ocean