summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_fork.c
diff options
context:
space:
mode:
authorart <art@openbsd.org>2009-03-23 13:25:11 +0000
committerart <art@openbsd.org>2009-03-23 13:25:11 +0000
commit7035ad6ba40bb677a9ff426bd786d469031a747f (patch)
tree7ce8d3f83afa8826b45b4e26a8c773b9209b64df /sys/kern/kern_fork.c
parentadvisory locks should return ENOLCK if we're out of locks. (diff)
downloadwireguard-openbsd-7035ad6ba40bb677a9ff426bd786d469031a747f.tar.xz
wireguard-openbsd-7035ad6ba40bb677a9ff426bd786d469031a747f.zip
Processor affinity for processes.
- Split up run queues so that every cpu has one. - Make setrunqueue choose the cpu where we want to make this process runnable (this should be refined and less brutal in the future). - When choosing the cpu where we want to run, make some kind of educated guess where it will be best to run (very naive right now). Other: - Set operations for sets of cpus. - load average calculations per cpu. - sched_is_idle() -> curcpu_is_idle() tested, debugged and prodded by many@
Diffstat (limited to 'sys/kern/kern_fork.c')
-rw-r--r--sys/kern/kern_fork.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c
index 76d868fe0a4..10dd9a5f8eb 100644
--- a/sys/kern/kern_fork.c
+++ b/sys/kern/kern_fork.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_fork.c,v 1.101 2008/11/11 02:13:14 tedu Exp $ */
+/* $OpenBSD: kern_fork.c,v 1.102 2009/03/23 13:25:11 art Exp $ */
/* $NetBSD: kern_fork.c,v 1.29 1996/02/09 18:59:34 christos Exp $ */
/*
@@ -260,8 +260,6 @@ 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);
- p2->p_cpu = p1->p_cpu;
-
/*
* Duplicate sub-structures as needed.
* Increase reference counts on shared objects.