summaryrefslogtreecommitdiffstats
path: root/sys/kern/sched_4bsd.c
diff options
context:
space:
mode:
authorjeff <jeff@FreeBSD.org>2008-03-02 07:19:35 +0000
committerjeff <jeff@FreeBSD.org>2008-03-02 07:19:35 +0000
commit3bd7de5a7ca507ccc85a2a4ede9e0fcb70122d19 (patch)
treee5e529ce180054c5b2e5e6f0cded42570b858dde /sys/kern/sched_4bsd.c
parent26fa289262c55377a8de57e630722327dfe7b50c (diff)
downloadFreeBSD-src-3bd7de5a7ca507ccc85a2a4ede9e0fcb70122d19.zip
FreeBSD-src-3bd7de5a7ca507ccc85a2a4ede9e0fcb70122d19.tar.gz
- 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
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 e1e5c91..0357ea7 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"
OpenPOWER on IntegriCloud