[patch] cleanup: kthread workqueue rename

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

 



cleanup: rename kthread helper_wq to kthread_wq.

Signed-off-by: Qi Yong <[email protected]>
---
diff --git a/kernel/kthread.c b/kernel/kthread.c
index c5f3c66..3184c94 100644
--- a/kernel/kthread.c
+++ b/kernel/kthread.c
@@ -19,7 +19,7 @@ #include <asm/semaphore.h>
  * We dont want to execute off keventd since it might
  * hold a semaphore our callers hold too:
  */
-static struct workqueue_struct *helper_wq;
+static struct workqueue_struct *kthread_wq;
 
 struct kthread_create_info
 {
@@ -138,10 +138,10 @@ struct task_struct *kthread_create(int (
 	/*
 	 * The workqueue needs to start up first:
 	 */
-	if (!helper_wq)
+	if (!kthread_wq)
 		work.func(work.data);
 	else {
-		queue_work(helper_wq, &work);
+		queue_work(kthread_wq, &work);
 		wait_for_completion(&create.done);
 	}
 	if (!IS_ERR(create.result)) {
@@ -203,12 +203,12 @@ int kthread_stop_sem(struct task_struct 
 }
 EXPORT_SYMBOL(kthread_stop_sem);
 
-static __init int helper_init(void)
+static __init int kthread_init(void)
 {
-	helper_wq = create_singlethread_workqueue("kthread");
-	BUG_ON(!helper_wq);
+	kthread_wq = create_singlethread_workqueue("kthread");
+	BUG_ON(!kthread_wq);
 
 	return 0;
 }
-core_initcall(helper_init);
+core_initcall(kthread_init);
 

-- 
Coywolf Qi Hunt
-
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