]> begriffs open source - freertos/commit
Only check once before re-setting ready priority
authorGaurav Aggarwal <aggarg@amazon.com>
Wed, 3 Jul 2019 00:08:16 +0000 (00:08 +0000)
committerGaurav Aggarwal <aggarg@amazon.com>
Wed, 3 Jul 2019 00:08:16 +0000 (00:08 +0000)
commit723574374917749c3830dc8a9a08cfff3de1f29f
treed83eb7f97f4995bd7fb7a99a62a200e262d8101f
parent004e2b637e2a0d2b31e6b4e0edbf0ef5aeb298cf
Only check once before re-setting ready priority

The macro taskRESET_READY_PRIORITY checks if the task being removed from the
ready list is the last one and only then resets the top ready priority
by calling portRESET_READY_PRIORITY. If we already know that it is the
last ready task being removed then there is no need to perform the check
again and the macro portRESET_READY_PRIORITY can be called directly. We were
doing the unnecessary check at two places and this commit fixes them.

This commit also increases the time period of check task to ensure that all
the demo tasks get a chance to run before the check is performed.
FreeRTOS/Demo/WIN32-MSVC/main_full.c
FreeRTOS/Source/tasks.c