summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/hle/kernel')
-rw-r--r--src/core/hle/kernel/scheduler.cpp2
-rw-r--r--src/core/hle/kernel/scheduler.h5
2 files changed, 3 insertions, 4 deletions
diff --git a/src/core/hle/kernel/scheduler.cpp b/src/core/hle/kernel/scheduler.cpp
index 2fe0d5a38..235068b22 100644
--- a/src/core/hle/kernel/scheduler.cpp
+++ b/src/core/hle/kernel/scheduler.cpp
@@ -8,7 +8,7 @@
namespace Kernel {
-Scheduler::Scheduler(std::shared_ptr<ARM_Interface> cpu_core) : cpu_core(cpu_core) {}
+Scheduler::Scheduler(ARM_Interface* cpu_core) : cpu_core(cpu_core) {}
Scheduler::~Scheduler() {
for (auto& thread : thread_list) {
diff --git a/src/core/hle/kernel/scheduler.h b/src/core/hle/kernel/scheduler.h
index 72e658ec6..27d0247d6 100644
--- a/src/core/hle/kernel/scheduler.h
+++ b/src/core/hle/kernel/scheduler.h
@@ -4,7 +4,6 @@
#pragma once
-#include <memory>
#include <vector>
#include "common/common_types.h"
#include "common/thread_queue_list.h"
@@ -15,7 +14,7 @@ namespace Kernel {
class Scheduler final {
public:
- Scheduler(std::shared_ptr<ARM_Interface> cpu_core);
+ explicit Scheduler(ARM_Interface* cpu_core);
~Scheduler();
/// Returns whether there are any threads that are ready to run.
@@ -68,7 +67,7 @@ private:
SharedPtr<Thread> current_thread = nullptr;
- std::shared_ptr<ARM_Interface> cpu_core;
+ ARM_Interface* cpu_core;
};
} // namespace Kernel