diff options
Diffstat (limited to 'src/core/core.cpp')
| -rw-r--r-- | src/core/core.cpp | 26 |
1 files changed, 5 insertions, 21 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp index 01e4faac8..77d21d41c 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp | |||
| @@ -27,10 +27,10 @@ | |||
| 27 | #include "core/file_sys/vfs_real.h" | 27 | #include "core/file_sys/vfs_real.h" |
| 28 | #include "core/hardware_interrupt_manager.h" | 28 | #include "core/hardware_interrupt_manager.h" |
| 29 | #include "core/hle/kernel/client_port.h" | 29 | #include "core/hle/kernel/client_port.h" |
| 30 | #include "core/hle/kernel/k_scheduler.h" | ||
| 30 | #include "core/hle/kernel/kernel.h" | 31 | #include "core/hle/kernel/kernel.h" |
| 31 | #include "core/hle/kernel/physical_core.h" | 32 | #include "core/hle/kernel/physical_core.h" |
| 32 | #include "core/hle/kernel/process.h" | 33 | #include "core/hle/kernel/process.h" |
| 33 | #include "core/hle/kernel/scheduler.h" | ||
| 34 | #include "core/hle/kernel/thread.h" | 34 | #include "core/hle/kernel/thread.h" |
| 35 | #include "core/hle/service/am/applets/applets.h" | 35 | #include "core/hle/service/am/applets/applets.h" |
| 36 | #include "core/hle/service/apm/controller.h" | 36 | #include "core/hle/service/apm/controller.h" |
| @@ -508,14 +508,6 @@ std::size_t System::CurrentCoreIndex() const { | |||
| 508 | return core; | 508 | return core; |
| 509 | } | 509 | } |
| 510 | 510 | ||
| 511 | Kernel::Scheduler& System::CurrentScheduler() { | ||
| 512 | return impl->kernel.CurrentScheduler(); | ||
| 513 | } | ||
| 514 | |||
| 515 | const Kernel::Scheduler& System::CurrentScheduler() const { | ||
| 516 | return impl->kernel.CurrentScheduler(); | ||
| 517 | } | ||
| 518 | |||
| 519 | Kernel::PhysicalCore& System::CurrentPhysicalCore() { | 511 | Kernel::PhysicalCore& System::CurrentPhysicalCore() { |
| 520 | return impl->kernel.CurrentPhysicalCore(); | 512 | return impl->kernel.CurrentPhysicalCore(); |
| 521 | } | 513 | } |
| @@ -524,22 +516,14 @@ const Kernel::PhysicalCore& System::CurrentPhysicalCore() const { | |||
| 524 | return impl->kernel.CurrentPhysicalCore(); | 516 | return impl->kernel.CurrentPhysicalCore(); |
| 525 | } | 517 | } |
| 526 | 518 | ||
| 527 | Kernel::Scheduler& System::Scheduler(std::size_t core_index) { | ||
| 528 | return impl->kernel.Scheduler(core_index); | ||
| 529 | } | ||
| 530 | |||
| 531 | const Kernel::Scheduler& System::Scheduler(std::size_t core_index) const { | ||
| 532 | return impl->kernel.Scheduler(core_index); | ||
| 533 | } | ||
| 534 | |||
| 535 | /// Gets the global scheduler | 519 | /// Gets the global scheduler |
| 536 | Kernel::GlobalScheduler& System::GlobalScheduler() { | 520 | Kernel::GlobalSchedulerContext& System::GlobalSchedulerContext() { |
| 537 | return impl->kernel.GlobalScheduler(); | 521 | return impl->kernel.GlobalSchedulerContext(); |
| 538 | } | 522 | } |
| 539 | 523 | ||
| 540 | /// Gets the global scheduler | 524 | /// Gets the global scheduler |
| 541 | const Kernel::GlobalScheduler& System::GlobalScheduler() const { | 525 | const Kernel::GlobalSchedulerContext& System::GlobalSchedulerContext() const { |
| 542 | return impl->kernel.GlobalScheduler(); | 526 | return impl->kernel.GlobalSchedulerContext(); |
| 543 | } | 527 | } |
| 544 | 528 | ||
| 545 | Kernel::Process* System::CurrentProcess() { | 529 | Kernel::Process* System::CurrentProcess() { |