]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Cap the priority calculated from the current thread's running tick count
authorjhb <jhb@FreeBSD.org>
Thu, 29 Dec 2011 16:17:16 +0000 (16:17 +0000)
committerjhb <jhb@FreeBSD.org>
Thu, 29 Dec 2011 16:17:16 +0000 (16:17 +0000)
commit784e4ad4ff32a49ce72ede57b9e77715cabcc2dd
tree2599264b221005efdeb22f04abce449e65d10909
parent6d9bb657995cb846b97c7558a0454afe42964b3a
Cap the priority calculated from the current thread's running tick count
at SCHED_PRI_RANGE to prevent overflows in the priority value.  This can
happen due to irregularities with clock interrupts under certain
virtualization environments.

Tested by: Larry Rosenman  ler lerctr org
MFC after: 2 weeks
sys/kern/sched_ule.c