Linux wireless drivers development
 help / color / mirror / Atom feed
* [PATCH] libertas: rename thread names
@ 2008-04-30  8:51 Holger Schurig
  2008-04-30 20:30 ` Dan Williams
  0 siblings, 1 reply; 3+ messages in thread
From: Holger Schurig @ 2008-04-30  8:51 UTC (permalink / raw)
  To: libertas-dev, Dan Williams, linux-wireless, John W. Linville

* Most thread names start with "k", so we can do the same
* the module is named "libertas", so a "klibertas_XXX" thread
  name more self-describing
* one thread is a "struct task_struct", the other a workqueue,
  let this be reflected in the name

Signed-off-by: Holger Schurig <hs4233@mail.mn-solutions.de>

Index: wireless-testing/drivers/net/wireless/libertas/main.c
===================================================================
--- wireless-testing.orig/drivers/net/wireless/libertas/main.c	2008-04-30 08:48:04.000000000 +0200
+++ wireless-testing/drivers/net/wireless/libertas/main.c	2008-04-30 09:01:22.000000000 +0200
@@ -1122,15 +1122,14 @@ struct lbs_private *lbs_add_card(void *c
 
 	priv->rtap_net_dev = NULL;
 
-	lbs_deb_thread("Starting main thread...\n");
 	init_waitqueue_head(&priv->waitq);
-	priv->main_thread = kthread_run(lbs_thread, dev, "lbs_main");
+	priv->main_thread = kthread_run(lbs_thread, dev, "klibertasd");
 	if (IS_ERR(priv->main_thread)) {
 		lbs_deb_thread("Error creating main thread.\n");
 		goto err_init_adapter;
 	}
 
-	priv->work_thread = create_singlethread_workqueue("lbs_worker");
+	priv->work_thread = create_singlethread_workqueue("klibertasq");
 	INIT_DELAYED_WORK(&priv->assoc_work, lbs_association_worker);
 	INIT_DELAYED_WORK(&priv->scan_work, lbs_scan_worker);
 	INIT_WORK(&priv->sync_channel, lbs_sync_channel_worker);

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-05-01 21:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-30  8:51 [PATCH] libertas: rename thread names Holger Schurig
2008-04-30 20:30 ` Dan Williams
2008-05-01 21:12   ` Holger Schurig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox