lkml.org 
[lkml]   [2006]   [Aug]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH 1/3] kthread: update s390 cmm driver to use kthread
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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2006-08-24 23:25    [from the cache]
©2003-2011 Jasper Spaans