From c5667e34d0367024e84f63070b55ab1b78c7d89a Mon Sep 17 00:00:00 2001 From: Sudeep Mohanty Date: Tue, 19 Aug 2025 15:18:02 +0200 Subject: [PATCH] feat(freertos-smp): Update event groups unlock to use taskDATA_GROUP_UNLOCK() --- event_groups.c | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/event_groups.c b/event_groups.c index 640bf99e6..9f31e5b8c 100644 --- a/event_groups.c +++ b/event_groups.c @@ -112,21 +112,7 @@ */ #if ( ( portUSING_GRANULAR_LOCKS == 1 ) && ( configNUMBER_OF_CORES > 1 ) ) #define event_groupsLOCK( pxEventBits ) taskDATA_GROUP_LOCK( &( ( pxEventBits )->xTaskSpinlock ) ) - #define event_groupsUNLOCK( pxEventBits ) \ - ( { \ - taskDATA_GROUP_UNLOCK( &( ( pxEventBits )->xTaskSpinlock ) ); \ - BaseType_t xAlreadyYielded; \ - if( xTaskUnlockCanYield() == pdTRUE ) \ - { \ - taskYIELD_WITHIN_API(); \ - xAlreadyYielded = pdTRUE; \ - } \ - else \ - { \ - xAlreadyYielded = pdFALSE; \ - } \ - xAlreadyYielded; \ - } ) + #define event_groupsUNLOCK( pxEventBits ) taskDATA_GROUP_UNLOCK( &( ( pxEventBits )->xTaskSpinlock ) ) #else /* #if ( ( portUSING_GRANULAR_LOCKS == 1 ) && ( configNUMBER_OF_CORES > 1 ) ) */ #define event_groupsLOCK( pxEventBits ) vTaskSuspendAll() #define event_groupsUNLOCK( pxEventBits ) xTaskResumeAll()