yangsong8-a1 opened a new pull request, #21640:
URL: https://github.com/apache/nuttx/pull/21640

   ## Summary
   The clk core protects its clock list with the global critical section.
   Use a recursive spinlock instead, so other CPUs are not stopped while the
   list is walked on SMP.
   
   ## Impact
   drivers/clk only. No API change.
   
   ## Testing
   Ubuntu 22.04, gcc 13.1, sim:nsh with CONFIG_CLK. A test program registers
   a fixed-rate clock and a gate under it, then three threads enable the
   gate, read its rate and disable it 2000 times each:
   ```
   clk: gate=0x7c8acd723ec0 rate=24000000
   clk: 3 threads x 2000 enable/get_rate/disable, errors=0, enabled=0
   ```
   


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