diff options
| author | bunnei <bunneidev@gmail.com> | 2019-03-10 17:29:01 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-03-10 17:29:01 -0400 |
| commit | 037d9bdde3b9137fb13817669f3d8ccb19f2c206 (patch) | |
| tree | 16058fe738265a5be0fd62671050b1704c21cb92 /src/core/cpu_core_manager.cpp | |
| parent | 633ce9290891db20e8af6655b8233d73c778f04e (diff) | |
| parent | fad20213e6f377d75ced3c2554b4f00a46ff9263 (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.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/cpu_core_manager.cpp b/src/core/cpu_core_manager.cpp index 2ddb3610d..93bc5619c 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 |
