|
621 | 621 | { |
622 | 622 | traceEVENT_GROUP_SET_BITS( xEventGroup, uxBitsToSet ); |
623 | 623 |
|
624 | | - #if ( ( portUSING_GRANULAR_LOCKS == 1 ) && ( configNUMBER_OF_CORES > 1 ) ) |
625 | | - |
626 | | - /* We are about to access the kernel data group non-deterministically, |
627 | | - * thus we suspend the kernel data group.*/ |
628 | | - vTaskSuspendAll(); |
629 | | - #endif /* #if ( ( portUSING_GRANULAR_LOCKS == 1 ) && ( configNUMBER_OF_CORES > 1 ) ) */ |
630 | | - |
631 | 624 | pxListItem = listGET_HEAD_ENTRY( pxList ); |
632 | 625 |
|
633 | 626 | /* Set the bits. */ |
|
698 | 691 |
|
699 | 692 | /* Snapshot resulting bits. */ |
700 | 693 | uxReturnBits = pxEventBits->uxEventBits; |
701 | | - |
702 | | - #if ( ( portUSING_GRANULAR_LOCKS == 1 ) && ( configNUMBER_OF_CORES > 1 ) ) |
703 | | - ( void ) xTaskResumeAll(); |
704 | | - #endif /* #if ( ( portUSING_GRANULAR_LOCKS == 1 ) && ( configNUMBER_OF_CORES > 1 ) ) */ |
705 | 694 | } |
706 | 695 | ( void ) event_groupsUNLOCK( pxEventBits ); |
707 | 696 |
|
|
726 | 715 | { |
727 | 716 | traceEVENT_GROUP_DELETE( xEventGroup ); |
728 | 717 |
|
729 | | - #if ( ( portUSING_GRANULAR_LOCKS == 1 ) && ( configNUMBER_OF_CORES > 1 ) ) |
730 | | - |
731 | | - /* We are about to access the kernel data group non-deterministically, |
732 | | - * thus we suspend the kernel data group.*/ |
733 | | - vTaskSuspendAll(); |
734 | | - #endif /* #if ( ( portUSING_GRANULAR_LOCKS == 1 ) && ( configNUMBER_OF_CORES > 1 ) ) */ |
735 | | - |
736 | 718 | while( listCURRENT_LIST_LENGTH( pxTasksWaitingForBits ) > ( UBaseType_t ) 0 ) |
737 | 719 | { |
738 | 720 | /* Unblock the task, returning 0 as the event list is being deleted |
739 | 721 | * and cannot therefore have any bits set. */ |
740 | 722 | configASSERT( pxTasksWaitingForBits->xListEnd.pxNext != ( const ListItem_t * ) &( pxTasksWaitingForBits->xListEnd ) ); |
741 | 723 | vTaskRemoveFromUnorderedEventList( pxTasksWaitingForBits->xListEnd.pxNext, eventUNBLOCKED_DUE_TO_BIT_SET ); |
742 | 724 | } |
743 | | - |
744 | | - #if ( ( portUSING_GRANULAR_LOCKS == 1 ) && ( configNUMBER_OF_CORES > 1 ) ) |
745 | | - ( void ) xTaskResumeAll(); |
746 | | - #endif /* #if ( ( portUSING_GRANULAR_LOCKS == 1 ) && ( configNUMBER_OF_CORES > 1 ) ) */ |
747 | 725 | } |
748 | 726 | ( void ) event_groupsUNLOCK( pxEventBits ); |
749 | 727 |
|
|
0 commit comments