aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2023-02-15 18:16:04 -0500
committerLiam <byteslice@airmail.cc>2023-02-21 12:19:25 -0500
commit5175ea2ae180fd1fef10b50671e2e9e2fe4f288a (patch)
tree35e1554c253e3169ab9b4510699750242e3488c9 /src
parentdbc6b2134338c5c845c742595a69d75aa6486000 (diff)
core: defer cpu shutdown
Diffstat (limited to 'src')
-rw-r--r--src/core/core.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp
index fb9b25d12c..2683533b80 100644
--- a/src/core/core.cpp
+++ b/src/core/core.cpp
@@ -380,9 +380,7 @@ struct System::Impl {
gpu_core->NotifyShutdown();
}
- kernel.ShutdownCores();
- cpu_manager.Shutdown();
- debugger.reset();
+ kernel.SuspendApplication(true);
if (services) {
services->KillNVNFlinger();
}
@@ -398,6 +396,9 @@ struct System::Impl {
gpu_core.reset();
host1x_core.reset();
perf_stats.reset();
+ kernel.ShutdownCores();
+ cpu_manager.Shutdown();
+ debugger.reset();
kernel.Shutdown();
memory.Reset();