From: Coywolf Qi Hunt <qiyong@fc-cn.com>
To: linux-kernel@vger.kernel.org
Cc: akpm@osdl.org, rusty@rustcorp.com.au
Subject: [patch] cleanup: kthread workqueue rename
Date: Thu, 22 Jun 2006 16:29:12 +0800 [thread overview]
Message-ID: <20060622082912.GA6334@localhost.localdomain> (raw)
cleanup: rename kthread helper_wq to kthread_wq.
Signed-off-by: Qi Yong <qiyong@freeforge.net>
---
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
next reply other threads:[~2006-06-22 11:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-22 8:29 Coywolf Qi Hunt [this message]
2006-06-22 11:13 ` Andrew Morton
2006-06-22 11:41 ` Coywolf Qi Hunt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060622082912.GA6334@localhost.localdomain \
--to=qiyong@fc-cn.com \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rusty@rustcorp.com.au \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®