4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-02-18 18:39:11 +08:00

[cpu] remove assert for recursion for #8475

Signed-off-by: Shell <smokewood@qq.com>
This commit is contained in:
Shell 2024-01-11 18:39:38 +08:00 committed by Meco Man
parent dfd4ae5464
commit 8da86e718f

View File

@ -136,7 +136,6 @@ RTM_EXPORT(rt_spin_unlock_irqrestore)
*/
struct rt_cpu *rt_cpu_self(void)
{
RT_ASSERT(!rt_scheduler_is_available());
return &_cpus[rt_hw_cpu_id()];
}