diff options
| author | 2020-12-20 20:57:54 -0800 | |
|---|---|---|
| committer | 2020-12-20 20:57:54 -0800 | |
| commit | 1279c7ce7afd3d1bf2b4e33aa922158acf2cd060 (patch) | |
| tree | 6db8088caed2bd957187e4730f51424325038fa5 /src/core/core.cpp | |
| parent | Merge pull request #5201 from ameerj/bufferq-refactor (diff) | |
| parent | hle: kernel: Process: Various style fixes based on code review feedback. (diff) | |
| download | yuzu-1279c7ce7afd3d1bf2b4e33aa922158acf2cd060.tar.gz yuzu-1279c7ce7afd3d1bf2b4e33aa922158acf2cd060.tar.xz yuzu-1279c7ce7afd3d1bf2b4e33aa922158acf2cd060.zip | |
Merge pull request #5131 from bunnei/scheduler-rewrite
Rewrite Kernel scheduler based on Atmosphere
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 7e3c54618..0961c0819 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" |
| @@ -507,14 +507,6 @@ std::size_t System::CurrentCoreIndex() const { | |||
| 507 | return core; | 507 | return core; |
| 508 | } | 508 | } |
| 509 | 509 | ||
| 510 | Kernel::Scheduler& System::CurrentScheduler() { | ||
| 511 | return impl->kernel.CurrentScheduler(); | ||
| 512 | } | ||
| 513 | |||
| 514 | const Kernel::Scheduler& System::CurrentScheduler() const { | ||
| 515 | return impl->kernel.CurrentScheduler(); | ||
| 516 | } | ||
| 517 | |||
| 518 | Kernel::PhysicalCore& System::CurrentPhysicalCore() { | 510 | Kernel::PhysicalCore& System::CurrentPhysicalCore() { |
| 519 | return impl->kernel.CurrentPhysicalCore(); | 511 | return impl->kernel.CurrentPhysicalCore(); |
| 520 | } | 512 | } |
| @@ -523,22 +515,14 @@ const Kernel::PhysicalCore& System::CurrentPhysicalCore() const { | |||
| 523 | return impl->kernel.CurrentPhysicalCore(); | 515 | return impl->kernel.CurrentPhysicalCore(); |
| 524 | } | 516 | } |
| 525 | 517 | ||
| 526 | Kernel::Scheduler& System::Scheduler(std::size_t core_index) { | ||
| 527 | return impl->kernel.Scheduler(core_index); | ||
| 528 | } | ||
| 529 | |||
| 530 | const Kernel::Scheduler& System::Scheduler(std::size_t core_index) const { | ||
| 531 | return impl->kernel.Scheduler(core_index); | ||
| 532 | } | ||
| 533 | |||
| 534 | /// Gets the global scheduler | 518 | /// Gets the global scheduler |
| 535 | Kernel::GlobalScheduler& System::GlobalScheduler() { | 519 | Kernel::GlobalSchedulerContext& System::GlobalSchedulerContext() { |
| 536 | return impl->kernel.GlobalScheduler(); | 520 | return impl->kernel.GlobalSchedulerContext(); |
| 537 | } | 521 | } |
| 538 | 522 | ||
| 539 | /// Gets the global scheduler | 523 | /// Gets the global scheduler |
| 540 | const Kernel::GlobalScheduler& System::GlobalScheduler() const { | 524 | const Kernel::GlobalSchedulerContext& System::GlobalSchedulerContext() const { |
| 541 | return impl->kernel.GlobalScheduler(); | 525 | return impl->kernel.GlobalSchedulerContext(); |
| 542 | } | 526 | } |
| 543 | 527 | ||
| 544 | Kernel::Process* System::CurrentProcess() { | 528 | Kernel::Process* System::CurrentProcess() { |