All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] kthread: update s390 cmm driver to use kthread
@ 2006-08-24 21:22 Serge E. Hallyn
  2006-08-25  8:53 ` Martin Schwidefsky
  2006-08-25 14:38 ` Christoph Hellwig
  0 siblings, 2 replies; 12+ messages in thread
From: Serge E. Hallyn @ 2006-08-24 21:22 UTC (permalink / raw)
  To: lkml, schwidefsky

Update the s390 cooperative memory manager, which can be a module,
to use kthread rather than kernel_thread, whose EXPORT is deprecated.

This patch compiles and boots fine, but I don't know how to really
test the driver.

Signed-off-by: Serge E. Hallyn <serue@us.ibm.com>

---

 arch/s390/mm/cmm.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

7f73a7a8a72647c0bd08ba5c47e941ddf72badee
diff --git a/arch/s390/mm/cmm.c b/arch/s390/mm/cmm.c
index ceea51c..a4d463d 100644
--- a/arch/s390/mm/cmm.c
+++ b/arch/s390/mm/cmm.c
@@ -15,6 +15,7 @@
 #include <linux/sched.h>
 #include <linux/sysctl.h>
 #include <linux/ctype.h>
+#include <linux/kthread.h>
 
 #include <asm/pgalloc.h>
 #include <asm/uaccess.h>
@@ -126,7 +127,6 @@ cmm_thread(void *dummy)
 {
 	int rc;
 
-	daemonize("cmmthread");
 	while (1) {
 		rc = wait_event_interruptible(cmm_thread_wait,
 			(cmm_pages != cmm_pages_target ||
@@ -161,7 +161,7 @@ cmm_thread(void *dummy)
 static void
 cmm_start_thread(void)
 {
-	kernel_thread(cmm_thread, NULL, 0);
+	kthread_run(cmm_thread, NULL, "cmmthread");
 }
 
 static void
-- 
1.1.6

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

end of thread, other threads:[~2006-08-28 14:48 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-08-24 21:22 [PATCH 1/3] kthread: update s390 cmm driver to use kthread Serge E. Hallyn
2006-08-25  8:53 ` Martin Schwidefsky
2006-08-25 10:13   ` Martin Schwidefsky
2006-08-25 19:04     ` Serge E. Hallyn
2006-08-25 14:38 ` Christoph Hellwig
2006-08-25 20:03   ` Serge E. Hallyn
2006-08-26  6:32     ` Heiko Carstens
2006-08-27 18:51       ` Serge E. Hallyn
2006-08-28  8:30         ` Martin Schwidefsky
2006-08-28 13:37         ` Heiko Carstens
2006-08-28 14:48           ` Serge E. Hallyn
2006-08-28  9:00     ` Martin Schwidefsky

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.