diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2004-06-09 20:18:29 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2004-06-09 20:18:29 +0000 |
commit | a3775629966bec0445340075a4869a0ea66b15f2 (patch) | |
tree | 5d5188c5a0c691a1dfd5e9d7e80b7a62514d4e95 /sys/kern/kern_fork.c | |
parent | 9637ef0a1e557491619d6e5e20fe656ae1780859 (diff) |
Merge in a piece of the SMP branch into HEAD.
Introduce the cpu_info structure, p_cpu field in struct proc and global
scheduling context and various changed code to deal with this. At the
moment no architecture uses this stuff yet, but it will allow us slow and
controlled migration to the new APIs.
All new code is ifdef:ed out.
ok deraadt@ niklas@
Diffstat (limited to 'sys/kern/kern_fork.c')
-rw-r--r-- | sys/kern/kern_fork.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c index becb63288a8..a103c391634 100644 --- a/sys/kern/kern_fork.c +++ b/sys/kern/kern_fork.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_fork.c,v 1.67 2004/06/05 22:38:40 tedu Exp $ */ +/* $OpenBSD: kern_fork.c,v 1.68 2004/06/09 20:18:28 art Exp $ */ /* $NetBSD: kern_fork.c,v 1.29 1996/02/09 18:59:34 christos Exp $ */ /* @@ -204,6 +204,10 @@ fork1(struct proc *p1, int exitsig, int flags, void *stack, size_t stacksize, timeout_set(&p2->p_sleep_to, endtsleep, p2); timeout_set(&p2->p_realit_to, realitexpire, p2); +#ifdef __HAVE_CPUINFO + p2->p_cpu = NULL; +#endif + /* * Duplicate sub-structures as needed. * Increase reference counts on shared objects. |