diff options
| author | Pillar <[email protected]> | 2025-08-06 15:08:35 +0800 |
|---|---|---|
| committer | R b b666 <[email protected]> | 2025-08-06 15:53:18 +0800 |
| commit | b084503b6d128bd378a95dcb070d191c97236d71 (patch) | |
| tree | fe5d4705a1e77682db5668477c7d9c757a60f3a7 /src/cpu_up.c | |
| parent | 95ea2fc72663b3453b5e50e44869b115f1c23306 (diff) | |
[kernel] add UP scheduler critical switch flag.
Diffstat (limited to 'src/cpu_up.c')
| -rw-r--r-- | src/cpu_up.c | 2 |
1 files changed, 2 insertions, 0 deletions
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. * |
