summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/kernel.cpp
diff options
context:
space:
mode:
authorGravatar Lioncash2020-01-30 18:19:21 -0500
committerGravatar Lioncash2020-01-30 18:29:57 -0500
commit51927bc9dc191165403203a146bd21fecd704691 (patch)
tree457c292a237e704bf08c218e3757cc2a00d19c4c /src/core/hle/kernel/kernel.cpp
parentMerge pull request #3353 from FernandoS27/aries (diff)
downloadyuzu-51927bc9dc191165403203a146bd21fecd704691.tar.gz
yuzu-51927bc9dc191165403203a146bd21fecd704691.tar.xz
yuzu-51927bc9dc191165403203a146bd21fecd704691.zip
kernel/physical_core: Remove unused kernel reference member variable
This isn't used within the class, so it can be removed to simplify the overall interface. While we're in the same area, we can simplify a unique_ptr reset() call.
Diffstat (limited to 'src/core/hle/kernel/kernel.cpp')
-rw-r--r--src/core/hle/kernel/kernel.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/hle/kernel/kernel.cpp b/src/core/hle/kernel/kernel.cpp
index 0cf3c8f70..edd4c4259 100644
--- a/src/core/hle/kernel/kernel.cpp
+++ b/src/core/hle/kernel/kernel.cpp
@@ -101,7 +101,7 @@ struct KernelCore::Impl {
101 void Initialize(KernelCore& kernel) { 101 void Initialize(KernelCore& kernel) {
102 Shutdown(); 102 Shutdown();
103 103
104 InitializePhysicalCores(kernel); 104 InitializePhysicalCores();
105 InitializeSystemResourceLimit(kernel); 105 InitializeSystemResourceLimit(kernel);
106 InitializeThreads(); 106 InitializeThreads();
107 InitializePreemption(); 107 InitializePreemption();
@@ -131,14 +131,14 @@ struct KernelCore::Impl {
131 } 131 }
132 cores.clear(); 132 cores.clear();
133 133
134 exclusive_monitor.reset(nullptr); 134 exclusive_monitor.reset();
135 } 135 }
136 136
137 void InitializePhysicalCores(KernelCore& kernel) { 137 void InitializePhysicalCores() {
138 exclusive_monitor = 138 exclusive_monitor =
139 Core::MakeExclusiveMonitor(system.Memory(), global_scheduler.CpuCoresCount()); 139 Core::MakeExclusiveMonitor(system.Memory(), global_scheduler.CpuCoresCount());
140 for (std::size_t i = 0; i < global_scheduler.CpuCoresCount(); i++) { 140 for (std::size_t i = 0; i < global_scheduler.CpuCoresCount(); i++) {
141 cores.emplace_back(system, kernel, i, *exclusive_monitor); 141 cores.emplace_back(system, i, *exclusive_monitor);
142 } 142 }
143 } 143 }
144 144