diff options
Diffstat (limited to '')
-rw-r--r-- | src/core/core_cpu.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/core/core_cpu.h b/src/core/core_cpu.h index 3d62de7cb..1d2bdc6cd 100644 --- a/src/core/core_cpu.h +++ b/src/core/core_cpu.h @@ -58,8 +58,12 @@ public: return *arm_interface; } - const std::shared_ptr<Kernel::Scheduler>& Scheduler() const { - return scheduler; + Kernel::Scheduler& Scheduler() { + return *scheduler; + } + + const Kernel::Scheduler& Scheduler() const { + return *scheduler; } bool IsMainCore() const { @@ -77,7 +81,7 @@ private: std::unique_ptr<ARM_Interface> arm_interface; CpuBarrier& cpu_barrier; - std::shared_ptr<Kernel::Scheduler> scheduler; + std::unique_ptr<Kernel::Scheduler> scheduler; std::atomic<bool> reschedule_pending = false; std::size_t core_index; |