Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Dec 2000 14:02:22 -0800 (PST)
From:      John Baldwin <jhb@FreeBSD.org>
To:        arch@FreeBSD.org
Subject:   curpriority...
Message-ID:  <XFMail.001211140222.jhb@FreeBSD.org>

next in thread | raw e-mail | index | archive | help
Well, it seems that curpriority is a bit bogus right now.  First of all, it is
only set in msleep/mawait when a process resumes.  Shouldn't it be set at the
end of mi_switch() when a process resumes instead, so that it is set for every
process switch?  Was it only done in tsleep/await before as an optimization of
some sort?  Secondly, it probably needs to become a per-CPU data variable,
rather than one that is global to the entire system..

Comments?

-- 

John Baldwin <jhb@FreeBSD.org> -- http://www.FreeBSD.org/~jhb/
PGP Key: http://www.baldwin.cx/~john/pgpkey.asc
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.001211140222.jhb>