This is an automated email from the ASF dual-hosted git repository.

pussuw pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 52a13a8351 sched/spin_lock: continue work to rename raw_spin* to 
spin_*_notrace
52a13a8351 is described below

commit 52a13a8351eee84c8053cee785a75cf1f9665285
Author: chao an <anchao.arc...@bytedance.com>
AuthorDate: Wed Feb 19 09:45:23 2025 +0800

    sched/spin_lock: continue work to rename raw_spin* to spin_*_notrace
    
    Some improvements are made to the following commits:
    
    | commit f22b93b337c2f9de457904596688a04bd1ce12e5
    | Author: hujun5 <huj...@xiaomi.com>
    | Date:   Fri Jan 31 07:01:07 2025 +0800
    |
    |     sched/spin_lock: rename raw_spin_lock to spin_lock_notrace
    |
    |     Signed-off-by: hujun5 <huj...@xiaomi.com>
    
    Signed-off-by: chao an <anchao.arc...@bytedance.com>
---
 include/nuttx/spinlock.h | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/include/nuttx/spinlock.h b/include/nuttx/spinlock.h
index 4cda659be6..a637f2a6ed 100644
--- a/include/nuttx/spinlock.h
+++ b/include/nuttx/spinlock.h
@@ -248,7 +248,7 @@ static inline_function void spin_lock(FAR volatile 
spinlock_t *lock)
 #endif /* CONFIG_SPINLOCK */
 
 /****************************************************************************
- * Name: raw_spin_trylock
+ * Name: spin_trylock_notrace
  *
  * Description:
  *   Try once to lock the spinlock.  Do not wait if the spinlock is already
@@ -271,7 +271,7 @@ static inline_function void spin_lock(FAR volatile 
spinlock_t *lock)
 
 #ifdef CONFIG_SPINLOCK
 static inline_function bool
-raw_spin_trylock(FAR volatile spinlock_t *lock)
+spin_trylock_notrace(FAR volatile spinlock_t *lock)
 {
 #ifdef CONFIG_TICKET_SPINLOCK
   if (!atomic_cmpxchg(&lock->next, &lock->owner,
@@ -319,7 +319,7 @@ static inline_function bool spin_trylock(FAR volatile 
spinlock_t *lock)
 
   /* Try lock without trace note */
 
-  locked = raw_spin_trylock(lock);
+  locked = spin_trylock_notrace(lock);
   if (locked)
     {
       /* Notify that we have the spinlock */
@@ -500,7 +500,7 @@ irqstate_t spin_lock_irqsave(FAR volatile spinlock_t *lock)
 #endif
 
 /****************************************************************************
- * Name: raw_spin_trylock_irqsave
+ * Name: spin_trylock_irqsave_notrace
  *
  * Description:
  *   Try once to lock the spinlock.  Do not wait if the spinlock is already
@@ -523,14 +523,14 @@ irqstate_t spin_lock_irqsave(FAR volatile spinlock_t 
*lock)
  ****************************************************************************/
 
 #ifdef CONFIG_SPINLOCK
-#  define raw_spin_trylock_irqsave(l, f) \
+#  define spin_trylock_irqsave_notrace(l, f) \
 ({ \
   f = up_irq_save(); \
-  raw_spin_trylock(l) ? \
+  spin_trylock_notrace(l) ? \
   true : ({ up_irq_restore(f); false; }); \
 })
 #else
-#  define raw_spin_trylock_irqsave(l, f) \
+#  define spin_trylock_irqsave_notrace(l, f) \
 ({ \
   (void)(l); \
   f = up_irq_save(); \

Reply via email to