From b14a14057ce20401e7c4feb29dc1eb12e36e2c0a Mon Sep 17 00:00:00 2001 From: heyuanjie87 <943313837@qq.com> Date: Fri, 30 Aug 2024 21:11:47 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E7=BC=96=E8=AF=91=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/idle.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/idle.c b/src/idle.c index 5773b92548..ce32149f9a 100644 --- a/src/idle.c +++ b/src/idle.c @@ -175,7 +175,9 @@ void rt_thread_idle_init(void) char idle_thread_name[RT_NAME_MAX]; #endif /* RT_NAME_MAX > 0 */ +#ifdef RT_USING_IDLE_HOOK rt_spin_lock_init(&_hook_spinlock); +#endif for (i = 0; i < _CPUS_NR; i++) {