summaryrefslogtreecommitdiff
path: root/src/core/core.cpp
diff options
context:
space:
mode:
authorGravatar bunnei2020-12-20 20:57:54 -0800
committerGravatar GitHub2020-12-20 20:57:54 -0800
commit1279c7ce7afd3d1bf2b4e33aa922158acf2cd060 (patch)
tree6db8088caed2bd957187e4730f51424325038fa5 /src/core/core.cpp
parentMerge pull request #5201 from ameerj/bufferq-refactor (diff)
parenthle: kernel: Process: Various style fixes based on code review feedback. (diff)
downloadyuzu-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.cpp26
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
510Kernel::Scheduler& System::CurrentScheduler() {
511 return impl->kernel.CurrentScheduler();
512}
513
514const Kernel::Scheduler& System::CurrentScheduler() const {
515 return impl->kernel.CurrentScheduler();
516}
517
518Kernel::PhysicalCore& System::CurrentPhysicalCore() { 510Kernel::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
526Kernel::Scheduler& System::Scheduler(std::size_t core_index) {
527 return impl->kernel.Scheduler(core_index);
528}
529
530const 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
535Kernel::GlobalScheduler& System::GlobalScheduler() { 519Kernel::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
540const Kernel::GlobalScheduler& System::GlobalScheduler() const { 524const Kernel::GlobalSchedulerContext& System::GlobalSchedulerContext() const {
541 return impl->kernel.GlobalScheduler(); 525 return impl->kernel.GlobalSchedulerContext();
542} 526}
543 527
544Kernel::Process* System::CurrentProcess() { 528Kernel::Process* System::CurrentProcess() {