]> begriffs open source - freertos/commit
Reset xNextTaskUnblockTime in task notify FromISR APIs (#1111)
authorGaurav-Aggarwal-AWS <33462878+aggarg@users.noreply.github.com>
Tue, 6 Aug 2024 05:19:48 +0000 (10:49 +0530)
committerGitHub <noreply@github.com>
Tue, 6 Aug 2024 05:19:48 +0000 (10:49 +0530)
commit53c7e7c46f20dbd941d3f17116725d8fda9e6b90
tree56a38c8d8373c1e8d98fdc99750b770097c3fc14
parentd750173b76b605b0a3e93683afb3f7cf51d80e2a
Reset xNextTaskUnblockTime in task notify FromISR APIs (#1111)

* Reset xNextTaskUnblockTime in task notify FromISR APIs

If a task is blocked waiting for a notification then
xNextTaskUnblockTime might be set to the blocked task's timeout time. If
the task is unblocked for a reason other than a timeout
xNextTaskUnblockTime is normally left unchanged, because it will
automatically get reset to a new value when the tick count equals
xNextTaskUnblockTime. However if tickless idle is used it is important
to enter sleep mode at the earliest possible time - so reset
xNextTaskUnblockTime here to ensure it is updated at the earliest
possible time.

This was reported here -
https://forums.freertos.org/t/the-vtaskgenericnotifygivefromisr-function-need-call-prvresetnexttaskunblocktime/21090

Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
tasks.c