[PATCH 1/3] kthread: update s390 cmm driver to use kthread

Serge E. Hallyn
2006-08-24T21:22:53Z

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