mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 15:58:59 +08:00
idle: remove heap & stack check in idle thread
Signed-off-by: ligd <liguiding1@xiaomi.com>
This commit is contained in:
@@ -942,12 +942,13 @@ void nxsem_add_holder_tcb(FAR struct tcb_s *htcb, FAR sem_t *sem)
|
|||||||
{
|
{
|
||||||
FAR struct semholder_s *pholder;
|
FAR struct semholder_s *pholder;
|
||||||
|
|
||||||
/* If priority inheritance is disabled for this thread, then do not add
|
/* If priority inheritance is disabled for this thread or it is IDLE hread,
|
||||||
* the holder. If there are never holders of the semaphore, the priority
|
* then do not add the holder.
|
||||||
|
* If there are never holders of the semaphore, the priority
|
||||||
* inheritance is effectively disabled.
|
* inheritance is effectively disabled.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if ((sem->flags & PRIOINHERIT_FLAGS_DISABLE) == 0)
|
if (htcb->flink != NULL && (sem->flags & PRIOINHERIT_FLAGS_DISABLE) == 0)
|
||||||
{
|
{
|
||||||
/* Find or allocate a container for this new holder */
|
/* Find or allocate a container for this new holder */
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user