anchao commented on code in PR #15705:
URL: https://github.com/apache/nuttx/pull/15705#discussion_r1933726046


##########
include/nuttx/spinlock.h:
##########
@@ -278,8 +278,6 @@ spin_lock_nopreempt(FAR volatile spinlock_t *lock)
 #ifdef CONFIG_SPINLOCK
 static inline_function void spin_lock(FAR volatile spinlock_t *lock)
 {
-  sched_lock();

Review Comment:
   please use **spin_lock_nopreempt()** , this PR just restore the code 
behavior to the same as before



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to