sched_note_wdog: add c_section

reason:
the external critical section protection has been removed.

Signed-off-by: hujun5 <hujun5@xiaomi.com>
This commit is contained in:
hujun5
2025-01-13 15:15:02 +08:00
committed by Xiang Xiao
parent 684ddc6ada
commit eb2608209a
+4
View File
@@ -1396,7 +1396,9 @@ void sched_note_wdog(uint8_t event, FAR void *handler, FAR const void *arg)
struct note_wdog_s note;
bool formatted = false;
FAR struct tcb_s *tcb = this_task();
irqstate_t flags;
flags = enter_critical_section_wo_note();
for (driver = g_note_drivers; *driver; driver++)
{
if (note_wdog(*driver, event, handler, arg))
@@ -1421,6 +1423,8 @@ void sched_note_wdog(uint8_t event, FAR void *handler, FAR const void *arg)
note_add(*driver, &note, sizeof(note));
}
leave_critical_section_wo_note(flags);
}
#endif