aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/bcm/Misc.c
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-10-29 17:02:39 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-11-01 09:42:56 -0400
commitde85f9858969f50467bf39ee992ef871ae2492d3 (patch)
treee670e70ee01cd860c375882d3d0275e75eb0c659 /drivers/staging/bcm/Misc.c
parent082e889b475c46e71be6e779f15ab095f888e03f (diff)
beceem: name threads with device name
This is the convention used by Intel Wimax Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Diffstat (limited to 'drivers/staging/bcm/Misc.c')
-rw-r--r--drivers/staging/bcm/Misc.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/staging/bcm/Misc.c b/drivers/staging/bcm/Misc.c
index a5ce9593dcf..eca75dbffe3 100644
--- a/drivers/staging/bcm/Misc.c
+++ b/drivers/staging/bcm/Misc.c
@@ -156,10 +156,12 @@ VOID AdapterFree(PMINI_ADAPTER Adapter)
int create_worker_threads(PMINI_ADAPTER psAdapter)
{
+ const char *name = psAdapter->dev->name;
+
BCM_DEBUG_PRINT(psAdapter,DBG_TYPE_INITEXIT, MP_INIT, DBG_LVL_ALL, "Init Threads...");
// Rx Control Packets Processing
psAdapter->control_packet_handler = kthread_run((int (*)(void *))
- control_packet_handler, psAdapter, "CtrlPktHdlr");
+ control_packet_handler, psAdapter, "%s-rx", name);
if(IS_ERR(psAdapter->control_packet_handler))
{
BCM_DEBUG_PRINT(psAdapter,DBG_TYPE_INITEXIT, MP_INIT, DBG_LVL_ALL, "No Kernel Thread, but still returning success\n");
@@ -167,7 +169,7 @@ int create_worker_threads(PMINI_ADAPTER psAdapter)
}
// Tx Thread
psAdapter->transmit_packet_thread = kthread_run((int (*)(void *))
- tx_pkt_handler, psAdapter, "TxPktThread");
+ tx_pkt_handler, psAdapter, "%s-tx", name);
if(IS_ERR (psAdapter->transmit_packet_thread))
{
BCM_DEBUG_PRINT(psAdapter,DBG_TYPE_INITEXIT, MP_INIT, DBG_LVL_ALL, "No Kernel Thread, but still returning success");