Reduce the thread switching cost.

Maybe it was actually too high.  Some tests fail with it that high.
This commit is contained in:
Unknown W. Brackets 2014-06-27 00:59:57 -07:00
parent 4471b968e8
commit 5ab3750186

View file

@ -3241,9 +3241,9 @@ void __KernelSwitchContext(Thread *target, const char *reason)
if (fromIdle && toIdle) {
// Don't eat any cycles going between idle.
} else if (fromIdle || toIdle) {
currentMIPS->downcount -= 1500;
currentMIPS->downcount -= 1200;
} else {
currentMIPS->downcount -= 3000;
currentMIPS->downcount -= 2700;
}
if (target)