Kernel/Synch: Do not attempt a reschedule on every syscall.

Not all syscalls should cause reschedules, this commit attempts to remedy that, however, it still does not cover all cases.
This commit is contained in:
Subv 2017-01-01 11:57:02 -05:00
parent 1163f92f1e
commit a1718862e3
2 changed files with 18 additions and 2 deletions

View file

@ -84,6 +84,7 @@ void Mutex::Release() {
if (lock_count == 0) {
holding_thread->held_mutexes.erase(this);
ResumeWaitingThread(this);
Core::System::GetInstance().PrepareReschedule();
}
}
}