aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/sched_4bsd.c
diff options
context:
space:
mode:
authorJeff Roberson <jeff@FreeBSD.org>2008-03-02 07:19:35 +0000
committerJeff Roberson <jeff@FreeBSD.org>2008-03-02 07:19:35 +0000
commit885d51a38a7d27227219d37738b67fd39064ec6a (patch)
treee5e529ce180054c5b2e5e6f0cded42570b858dde /sys/kern/sched_4bsd.c
parent517dbe2e45351a02545015f088ea3a92262fcf81 (diff)
downloadsrc-885d51a38a7d27227219d37738b67fd39064ec6a.tar.gz
src-885d51a38a7d27227219d37738b67fd39064ec6a.zip
- Add a new sched_affinity() api to be used in the upcoming cpuset
implementation. - Add empty implementations of sched_affinity() to 4BSD and ULE. Sponsored by: Nokia
Notes
Notes: svn path=/head/; revision=176729
Diffstat (limited to 'sys/kern/sched_4bsd.c')
-rw-r--r--sys/kern/sched_4bsd.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/kern/sched_4bsd.c b/sys/kern/sched_4bsd.c
index e1e5c916fb42..0357ea7bdcf7 100644
--- a/sys/kern/sched_4bsd.c
+++ b/sys/kern/sched_4bsd.c
@@ -1402,5 +1402,10 @@ sched_fork_exit(struct thread *td)
THREAD_LOCK_ASSERT(td, MA_OWNED | MA_NOTRECURSED);
}
+void
+sched_affinity(struct thread *td)
+{
+}
+
#define KERN_SWITCH_INCLUDE 1
#include "kern/kern_switch.c"