[Devel] [PATCH] powerpc pseries rtasd: Convert to kthread API.
Eric W. Biederman
ebiederm at xmission.com
Thu Apr 19 00:58:46 PDT 2007
From: Eric W. Biederman <ebiederm at xmission.com>
This patch modifies the startup of rtasd to use kthread_run instaed of
a combination of kernel_thread and daemonize. Making the code a little
simpler and more maintainble.
Cc: Paul Mackerras <paulus at samba.org>
Signed-off-by: Eric W. Biederman <ebiederm at xmission.com>
---
arch/powerpc/platforms/pseries/rtasd.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/arch/powerpc/platforms/pseries/rtasd.c b/arch/powerpc/platforms/pseries/rtasd.c
index 77d0937..919a374 100644
--- a/arch/powerpc/platforms/pseries/rtasd.c
+++ b/arch/powerpc/platforms/pseries/rtasd.c
@@ -20,6 +20,7 @@
#include <linux/spinlock.h>
#include <linux/cpu.h>
#include <linux/delay.h>
+#include <linux/kthread.h>
#include <asm/uaccess.h>
#include <asm/io.h>
@@ -429,8 +430,6 @@ static int rtasd(void *unused)
int event_scan = rtas_token("event-scan");
int rc;
- daemonize("rtasd");
-
if (event_scan == RTAS_UNKNOWN_SERVICE || get_eventscan_parms() == -1)
goto error;
@@ -497,7 +496,7 @@ static int __init rtas_init(void)
else
printk(KERN_ERR "Failed to create error_log proc entry\n");
- if (kernel_thread(rtasd, NULL, CLONE_FS) < 0)
+ if (IS_ERR(kthread_run(rtasd, NULL, "rtasd")))
printk(KERN_ERR "Failed to start RTAS daemon\n");
return 0;
--
1.5.0.g53756
_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
More information about the Devel
mailing list