diff options
author | Liam <byteslice@airmail.cc> | 2022-06-27 00:52:16 +0200 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2022-07-15 04:47:18 +0200 |
commit | 0624c880bd5af45ae9095465e079fa55458515f6 (patch) | |
tree | a8b9f3adf516af30cad021fc32f8669426946cd5 /src/core/hle/kernel/kernel.cpp | |
parent | Merge pull request #8540 from lat9nq/copy-nv-ffmpeg (diff) | |
download | yuzu-0624c880bd5af45ae9095465e079fa55458515f6.tar yuzu-0624c880bd5af45ae9095465e079fa55458515f6.tar.gz yuzu-0624c880bd5af45ae9095465e079fa55458515f6.tar.bz2 yuzu-0624c880bd5af45ae9095465e079fa55458515f6.tar.lz yuzu-0624c880bd5af45ae9095465e079fa55458515f6.tar.xz yuzu-0624c880bd5af45ae9095465e079fa55458515f6.tar.zst yuzu-0624c880bd5af45ae9095465e079fa55458515f6.zip |
Diffstat (limited to 'src/core/hle/kernel/kernel.cpp')
-rw-r--r-- | src/core/hle/kernel/kernel.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/core/hle/kernel/kernel.cpp b/src/core/hle/kernel/kernel.cpp index 7307cf262..10e1f47f6 100644 --- a/src/core/hle/kernel/kernel.cpp +++ b/src/core/hle/kernel/kernel.cpp @@ -75,7 +75,6 @@ struct KernelCore::Impl { InitializeSystemResourceLimit(kernel, system.CoreTiming()); InitializeMemoryLayout(); Init::InitializeKPageBufferSlabHeap(system); - InitializeSchedulers(); InitializeShutdownThreads(); InitializePreemption(kernel); @@ -148,7 +147,6 @@ struct KernelCore::Impl { shutdown_threads[core_id] = nullptr; } - schedulers[core_id]->Finalize(); schedulers[core_id].reset(); } @@ -195,17 +193,11 @@ struct KernelCore::Impl { exclusive_monitor = Core::MakeExclusiveMonitor(system.Memory(), Core::Hardware::NUM_CPU_CORES); for (u32 i = 0; i < Core::Hardware::NUM_CPU_CORES; i++) { - schedulers[i] = std::make_unique<Kernel::KScheduler>(system, i); + schedulers[i] = std::make_unique<Kernel::KScheduler>(system.Kernel()); cores.emplace_back(i, system, *schedulers[i], interrupts); } } - void InitializeSchedulers() { - for (u32 i = 0; i < Core::Hardware::NUM_CPU_CORES; i++) { - cores[i].Scheduler().Initialize(); - } - } - // Creates the default system resource limit void InitializeSystemResourceLimit(KernelCore& kernel, const Core::Timing::CoreTiming& core_timing) { |