Moving a kthread between CPUs?

Christian Brueffer chris at unixpages.org
Tue Oct 26 10:26:03 PDT 2004


On Tue, Oct 19, 2004 at 09:39:14PM +0530, Joseph Koshy wrote:
> > In 5.x there's a sched_bind() interface that can be used to pin a thread to an
> > arbitrary CPU.
> 
> sched_bind() could work.  Thanks.
> 
> A quick grep didn't reveal any uses of sched_{bind,unbind} inside the
> kernel though ...

It's used in src/sys/kern/sched_ule.c and src/sys/kern/sched_4bsd.c.

- Christian

-- 
Christian Brueffer	chris at unixpages.org	brueffer at FreeBSD.org
GPG Key:	 http://people.freebsd.org/~brueffer/brueffer.key.asc
GPG Fingerprint: A5C8 2099 19FF AACA F41B  B29B 6C76 178C A0ED 982D
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-smp/attachments/20041026/2b5855c4/attachment.bin


More information about the freebsd-smp mailing list