anchao commented on PR #15684:
URL: https://github.com/apache/nuttx/pull/15684#issuecomment-2612062152

   > @anchao your understand isn't fully correct, please reference this 
document: https://docs.kernel.org/locking/locktypes.html NuttX recent change 
make the behaivour same as Linux when PREEMPT_RT isn't enabled. If we want to 
support PREEMPT_RT, we need map spinlock to mutex and migrate ALL interrupt 
handler to thread context.
   
   I think we should no need to have 2 versions(PREEMPT_RT and non-PREEMPT_RT), 
but the semantics of `raw_` is different with Linux, so we should align our 
understanding
   1. Delete raw_ spinlock or implement raw_ to disable preemption by default
   2. Keep spin_lock unchanged
   3. Provide a preemptible version of spin_lock, so that most places in AMP 
mode can use this API


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to