git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fedora core 6 1.2949 + vserver 2.2.0
[linux-2.6.git]
/
arch
/
cris
/
arch-v10
/
kernel
/
process.c
diff --git
a/arch/cris/arch-v10/kernel/process.c
b/arch/cris/arch-v10/kernel/process.c
index
0a675ce
..
9024966
100644
(file)
--- a/
arch/cris/arch-v10/kernel/process.c
+++ b/
arch/cris/arch-v10/kernel/process.c
@@
-11,7
+11,6
@@
* This file handles the architecture-dependent parts of process handling..
*/
* This file handles the architecture-dependent parts of process handling..
*/
-#include <linux/config.h>
#include <linux/sched.h>
#include <linux/err.h>
#include <linux/fs.h>
#include <linux/sched.h>
#include <linux/err.h>
#include <linux/fs.h>
@@
-104,7
+103,8
@@
int kernel_thread(int (*fn)(void *), void * arg, unsigned long flags)
regs.dccr = 1 << I_DCCR_BITNR;
/* Ok, create the new process.. */
regs.dccr = 1 << I_DCCR_BITNR;
/* Ok, create the new process.. */
- return do_fork(flags | CLONE_VM | CLONE_UNTRACED, 0, ®s, 0, NULL, NULL);
+ return do_fork(flags | CLONE_VM | CLONE_UNTRACED | CLONE_KTHREAD,
+ 0, ®s, 0, NULL, NULL);
}
/* setup the child's kernel stack with a pt_regs and switch_stack on it.
}
/* setup the child's kernel stack with a pt_regs and switch_stack on it.