Reduce the thread switching cost.
Maybe it was actually too high. Some tests fail with it that high.
This commit is contained in:
parent
4471b968e8
commit
5ab3750186
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue