Revert "kernel: Various improvements to scheduler"
This commit is contained in:
parent
3843995ceb
commit
0c8594b225
23 changed files with 140 additions and 224 deletions
|
@ -507,6 +507,12 @@ const ARM_Interface& System::CurrentArmInterface() const {
|
|||
return impl->kernel.CurrentPhysicalCore().ArmInterface();
|
||||
}
|
||||
|
||||
std::size_t System::CurrentCoreIndex() const {
|
||||
std::size_t core = impl->kernel.GetCurrentHostThreadID();
|
||||
ASSERT(core < Core::Hardware::NUM_CPU_CORES);
|
||||
return core;
|
||||
}
|
||||
|
||||
Kernel::PhysicalCore& System::CurrentPhysicalCore() {
|
||||
return impl->kernel.CurrentPhysicalCore();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue