fedora core 6 1.2949 + vserver 2.2.0
[linux-2.6.git] / arch / v850 / kernel / process.c
index 621111d..6307dc5 100644 (file)
@@ -11,7 +11,6 @@
  * Written by Miles Bader <miles@gnu.org>
  */
 
-#include <linux/config.h>
 #include <linux/errno.h>
 #include <linux/sched.h>
 #include <linux/kernel.h>
@@ -37,7 +36,7 @@ extern void ret_from_fork (void);
 
 
 /* The idle loop.  */
-void default_idle (void)
+static void default_idle (void)
 {
        while (! need_resched ())
                asm ("halt; nop; nop; nop; nop; nop" ::: "cc");
@@ -84,7 +83,7 @@ int kernel_thread (int (*fn)(void *), void *arg, unsigned long flags)
        /* Clone this thread.  Note that we don't pass the clone syscall's
           second argument -- it's ignored for calls from kernel mode (the
           child's SP is always set to the top of the kernel stack).  */
-       arg0 = flags | CLONE_VM;
+       arg0 = flags | CLONE_VM | CLONE_KTHREAD;
        syscall = __NR_clone;
        asm volatile ("trap " SYSCALL_SHORT_TRAP
                      : "=r" (ret), "=r" (syscall)