Browse Source

[src][kservice]fix shutdown log (#9061)

fix shutdown log
zms123456 1 year ago
parent
commit
1e287b2591
1 changed files with 3 additions and 7 deletions
  1. 3 7
      src/kservice.c

+ 3 - 7
src/kservice.c

@@ -78,15 +78,11 @@ rt_weak void rt_hw_cpu_reset(void)
 
 rt_weak void rt_hw_cpu_shutdown(void)
 {
-    rt_base_t level;
     LOG_I("CPU shutdown...");
     LOG_W("Using default rt_hw_cpu_shutdown()."
-        "Please consider implementing rt_hw_cpu_reset() in another file.");
-    level = rt_hw_interrupt_disable();
-    while (level)
-    {
-        RT_ASSERT(RT_NULL);
-    }
+        "Please consider implementing rt_hw_cpu_shutdown() in another file.");
+    rt_hw_interrupt_disable();
+    RT_ASSERT(0);
     return;
 }