portGET_TASK_LOCK() cost too much cpu on FreeRTOS SMP on Coretex-A53 platform

Hi, I have run FreeRTOS SMP on Coretex-A53 platform,but i found portGET_TASK_LOCK() cost too much cpu when the system is under heavy load,Is there any way to optime the lock in FreeRTOS SMP system?

I assume you are using this port - FreeRTOS-Kernel-Partner-Supported-Ports/TI/CORTEX_A53_64-BIT_TI_AM64_SMP at main · FreeRTOS/FreeRTOS-Kernel-Partner-Supported-Ports · GitHub. This port was contributed by TI - I suggest reaching out to them.

@aggarg Thanks for for your reply,but i think this is a commom problem in FreeRTOS SMP because the critical section protected by this lock is too large, such as the critical section between vTaskSuspendAll() and xTaskResumeAll().

We are aware of that and there is roadmap item to address it which is currently being worked upon by community members - Granular Lock for SMP · Issue #905 · FreeRTOS/FreeRTOS-Kernel · GitHub.