Messages in this thread Patch in this message | | | Date | Thu, 24 Aug 2006 16:22:42 -0500 | From | "Serge E. Hallyn" <> | 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/
| |