From 885d51a38a7d27227219d37738b67fd39064ec6a Mon Sep 17 00:00:00 2001 From: Jeff Roberson Date: Sun, 2 Mar 2008 07:19:35 +0000 Subject: - 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 --- sys/kern/sched_4bsd.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'sys/kern/sched_4bsd.c') 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" -- cgit v1.2.3