From b084503b6d128bd378a95dcb070d191c97236d71 Mon Sep 17 00:00:00 2001 From: Pillar Date: Wed, 6 Aug 2025 15:08:35 +0800 Subject: [kernel] add UP scheduler critical switch flag. --- src/cpu_up.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/cpu_up.c') diff --git a/src/cpu_up.c b/src/cpu_up.c index 32825461b0..d1720c9459 100644 --- a/src/cpu_up.c +++ b/src/cpu_up.c @@ -40,6 +40,7 @@ void rt_spin_lock(struct rt_spinlock *lock) /** * @brief This function will unlock the spinlock, will unlock the thread scheduler. + * If the scheduling function is called before unlocking, it will be scheduled in this function. * * @param lock is a pointer to the spinlock. */ @@ -72,6 +73,7 @@ rt_base_t rt_spin_lock_irqsave(struct rt_spinlock *lock) /** * @brief This function will unlock the spinlock and then restore current cpu interrupt status, will unlock the thread scheduler. + * If the scheduling function is called before unlocking, it will be scheduled in this function. * * @param lock is a pointer to the spinlock. * -- cgit v1.3.1