From owner-cvs-src@FreeBSD.ORG Thu Jun 15 09:21:23 2006 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8F63E16A41A; Thu, 15 Jun 2006 09:21:23 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from tarsier.geekcn.org (tarsier.geekcn.org [210.51.165.229]) by mx1.FreeBSD.org (Postfix) with ESMTP id A8BAD43D46; Thu, 15 Jun 2006 09:21:20 +0000 (GMT) (envelope-from delphij@delphij.net) Received: from localhost (tarsier.geekcn.org [210.51.165.229]) by tarsier.geekcn.org (Postfix) with ESMTP id 6E605EB0EC2; Thu, 15 Jun 2006 17:21:18 +0800 (CST) X-Virus-Scanned: amavisd-new at geekcn.org Received: from tarsier.geekcn.org ([210.51.165.229]) by localhost (mail.geekcn.org [210.51.165.229]) (amavisd-new, port 10024) with ESMTP id zBRQNj4-mf56; Thu, 15 Jun 2006 17:21:10 +0800 (CST) Received: from [10.217.12.210] (sina152-194.staff.sina.com.cn [61.135.152.194]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by tarsier.geekcn.org (Postfix) with ESMTP id 5C53EEB0994; Thu, 15 Jun 2006 17:21:08 +0800 (CST) From: Xin LI To: David Xu In-Reply-To: <200606150637.k5F6bdax000157@repoman.freebsd.org> References: <200606150637.k5F6bdax000157@repoman.freebsd.org> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-0ZDUKE0V/9EKaTE4hk9s" Organization: The FreeBSD Project Date: Thu, 15 Jun 2006 17:21:02 +0800 Message-Id: <1150363262.937.44.camel@spirit> Mime-Version: 1.0 X-Mailer: Evolution 2.6.2 FreeBSD GNOME Team Port Cc: cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/sys sched.h src/sys/posix4 ksched.c src/sys/kern sched_4bsd.c sched_core.c sched_ule.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 09:21:23 -0000 --=-0ZDUKE0V/9EKaTE4hk9s Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, David, =E5=9C=A8 2006-06-15=E5=9B=9B=E7=9A=84 06:37 +0000=EF=BC=8CDavid Xu=E5=86= =99=E9=81=93=EF=BC=9A > davidxu 2006-06-15 06:37:39 UTC >=20 > FreeBSD src repository >=20 > Modified files: > sys/sys sched.h=20 > sys/posix4 ksched.c=20 > sys/kern sched_4bsd.c sched_core.c sched_ule.c=20 > Log: > Add scheduler API sched_relinquish(), the API is used to implement > yield() and sched_yield() syscalls. Every scheduler has its own way > to relinquish cpu, the ULE and CORE schedulers have two internal run- > queues, a timesharing thread which calls yield() syscall should be > moved to inactive queue. A question that might be related: We have sched_sizeof_proc(), etc. in every scheduler, which returns a constant. Is it worthy to convert them to constants that just expand inline during the kernel compile? Cheers, --=20 Xin LI http://www.delphij.net/ --=-0ZDUKE0V/9EKaTE4hk9s Content-Type: application/pgp-signature; name=signature.asc Content-Description: =?UTF-8?Q?=E8=BF=99=E6=98=AF=E4=BF=A1=E4=BB=B6=E7=9A=84=E6=95=B0?= =?UTF-8?Q?=E5=AD=97=E7=AD=BE=E5=90=8D=E9=83=A8=E5=88=86?= -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (FreeBSD) iD8DBQBEkSZ+hcUczkLqiksRAvBuAKCdzxsnuzEljEhrCPnFNUMqvEgoxACgoIQl hEJoVoPlFfdX0iD+u1YeaVc= =36ZL -----END PGP SIGNATURE----- --=-0ZDUKE0V/9EKaTE4hk9s--