diff options
| author | 2021-12-12 22:43:25 -0800 | |
|---|---|---|
| committer | 2021-12-12 22:43:25 -0800 | |
| commit | 280c77989880e81f622440b157a0ce1b7139847b (patch) | |
| tree | 49a3ef8127d721dc44effb8315e5db7e796336f4 /src/core/core.cpp | |
| parent | Merge pull request #7495 from FernandoS27/text-blit-fix-again (diff) | |
| parent | hle: kernel k_scheduler: EnableScheduling: Remove redundant GetCurrentThreadP... (diff) | |
| download | yuzu-280c77989880e81f622440b157a0ce1b7139847b.tar.gz yuzu-280c77989880e81f622440b157a0ce1b7139847b.tar.xz yuzu-280c77989880e81f622440b157a0ce1b7139847b.zip | |
Merge pull request #7462 from bunnei/kernel-improve-scheduling
Kernel: Improve threading & scheduling V3
Diffstat (limited to 'src/core/core.cpp')
| -rw-r--r-- | src/core/core.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp index 473ab9f81..aa96f709b 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp | |||
| @@ -521,12 +521,6 @@ const ARM_Interface& System::CurrentArmInterface() const { | |||
| 521 | return impl->kernel.CurrentPhysicalCore().ArmInterface(); | 521 | return impl->kernel.CurrentPhysicalCore().ArmInterface(); |
| 522 | } | 522 | } |
| 523 | 523 | ||
| 524 | std::size_t System::CurrentCoreIndex() const { | ||
| 525 | std::size_t core = impl->kernel.GetCurrentHostThreadID(); | ||
| 526 | ASSERT(core < Core::Hardware::NUM_CPU_CORES); | ||
| 527 | return core; | ||
| 528 | } | ||
| 529 | |||
| 530 | Kernel::PhysicalCore& System::CurrentPhysicalCore() { | 524 | Kernel::PhysicalCore& System::CurrentPhysicalCore() { |
| 531 | return impl->kernel.CurrentPhysicalCore(); | 525 | return impl->kernel.CurrentPhysicalCore(); |
| 532 | } | 526 | } |