Kernel: Preempt Single core on redudant yields.

This commit is contained in:
Fernando Sahmkow
2020-03-10 13:13:39 -04:00
parent a439cdf22e
commit d494b074e8
6 changed files with 42 additions and 21 deletions

View File

@ -642,6 +642,10 @@ void KernelCore::Suspend(bool in_suspention) {
}
}
bool KernelCore::IsMulticore() const {
return impl->is_multicore;
}
void KernelCore::ExceptionalExit() {
exception_exited = true;
Suspend(true);