Skip to content

Commit

Permalink
task_exit.c: Add missing sched_note_stop()
Browse files Browse the repository at this point in the history
A regression from #13728 ; sched_note_stop() is never called for tasks
that exit normally via exit().
  • Loading branch information
pussuw committed Oct 23, 2024
1 parent e16d121 commit c33d5a8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sched/task/task_exit.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ int nxtask_exit(void)
#endif

dtcb->task_state = TSTATE_TASK_INACTIVE;
sched_note_stop(dtcb);
ret = nxsched_release_tcb(dtcb, dtcb->flags & TCB_FLAG_TTYPE_MASK);

#ifdef CONFIG_SMP
Expand Down

0 comments on commit c33d5a8

Please sign in to comment.