aboutsummaryrefslogtreecommitdiff
path: root/src/core/cpu_core_manager.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2019-03-10 17:29:01 -0400
committerGitHub <noreply@github.com>2019-03-10 17:29:01 -0400
commit0b4cf1ba01fded6f1394a5300303fea468ee3a78 (patch)
tree16058fe738265a5be0fd62671050b1704c21cb92 /src/core/cpu_core_manager.cpp
parent11ac277646ca8d7fb47ef00b6f4e76a1fc5d8a69 (diff)
parent38dd80f70f6efaf43ca2c91671644c167752438b (diff)
Merge pull request #2193 from lioncash/global
kernel/scheduler: Pass in system instance in constructor
Diffstat (limited to 'src/core/cpu_core_manager.cpp')
-rw-r--r--src/core/cpu_core_manager.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/cpu_core_manager.cpp b/src/core/cpu_core_manager.cpp
index 2ddb3610d2..93bc5619c8 100644
--- a/src/core/cpu_core_manager.cpp
+++ b/src/core/cpu_core_manager.cpp
@@ -27,8 +27,7 @@ void CpuCoreManager::Initialize(System& system) {
exclusive_monitor = Cpu::MakeExclusiveMonitor(cores.size());
for (std::size_t index = 0; index < cores.size(); ++index) {
- cores[index] =
- std::make_unique<Cpu>(system.CoreTiming(), *exclusive_monitor, *barrier, index);
+ cores[index] = std::make_unique<Cpu>(system, *exclusive_monitor, *barrier, index);
}
// Create threads for CPU cores 1-3, and build thread_to_cpu map