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

   Summary
   This PR updates the note driver path to support emitting note events from 
contexts where a context switch must not occur (e.g. suspend/resume and 
critical section transitions).
   
   It introduces a noswitches flag and avoids waking poll waiters for 
noswitches events, preventing unintended scheduling activity in those sensitive 
contexts.
   
   Changes
   note: remove cpu_pause & cpu_resume related code
   note: add noswitches for SUSPEND/RESUME
   Files touched
   drivers/note/note_driver.c
   drivers/note/noteram_driver.c
   drivers/note/noterpmsg_driver.c
   drivers/note/notestream_driver.c
   drivers/segger/note_sysview.c
   include/nuttx/note/note_driver.h
   include/nuttx/sched_note.h
   arch/risc-v/src/mpfs/mpfs_rcc.c
   
   Testing
   sim:nsh (build + boot)
   Verified note driver changes do not trigger poll wakeups for noswitches 
events during suspend/resume and critical-section transitions.


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