wangchdo opened a new pull request, #17277:
URL: https://github.com/apache/nuttx/pull/17277

   ## Summary
   
   Replace the spinlock/sched_lock pair in the arch code with
   spin_lock_irqsave_nopreempt() to improve code clarity and consistency.
   
   ## Impact
   
   Code improvement, no impact to any functions.
   
   ## Testing
   
   **ostest passed on board a2g-tc397-5v-tft**
   
   NuttShell (NSH)
   nsh> 
   nsh> 
   nsh> uname -a
   NuttX 0.0.0 d3fe583f0a-dirty Nov  4 2025 13:28:07 tricore a2g-tc397-5v-tft
   nsh> 
   nsh> ostest
   
   (...)
   
   
   End of test memory usage:
   VARIABLE  BEFORE   AFTER
   ======== ======== ========
   arena       28dfc    28dfc
   ordblks         5        7
   mxordblk    1f8f8    1f8f8
   uordblks     6fb4     5df4
   fordblks    21e48    23008
   
   user_main: scheduler lock test
   sched_lock: Starting lowpri_thread at 97
   sched_lock: Set lowpri_thread priority to 97
   sched_lock: Starting highpri_thread at 98
   sched_lock: Set highpri_thread priority to 98
   sched_lock: Waiting...
   sched_lock: PASSED No pre-emption occurred while scheduler was locked.
   sched_lock: Starting lowpri_thread at 97
   sched_lock: Set lowpri_thread priority to 97
   sched_lock: Starting highpri_thread at 98
   sched_lock: Set highpri_thread priority to 98
   sched_lock: Waiting...
   sched_lock: PASSED No pre-emption occurred while scheduler was locked.
   sched_lock: Finished
   
   End of test memory usage:
   VARIABLE  BEFORE   AFTER
   ======== ======== ========
   arena       28dfc    28dfc
   ordblks         7        6
   mxordblk    1f8f8    1f8f8
   uordblks     5df4     5514
   fordblks    23008    238e8
   
   Final memory usage:
   VARIABLE  BEFORE   AFTER
   ======== ======== ========
   arena       28dfc    28dfc
   ordblks         1        6
   mxordblk    24258    1f8f8
   uordblks     4ba4     5514
   fordblks    24258    238e8
   user_main: Exiting
   ostest_main: Exiting with status 0
   nsh>
   
   


-- 
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