Freertos-smp kernel - PORT OPTIMISED TASK SELECTION

Hi,

I want to ask what’s the reason that configUSE_PORT_OPTIMISED_TASK_SELECTION must be disabled while using freertos-smp kernel?
Is it possible to add it to freertos-smp kernel?

Thanks,
Hananya

Hi Hananya,

configUSE_PORT_OPTIMISED_TASK_SELECTION can be used to speed up task selection in single core FreeRTOS by porting supported clz function.

Currently, FreeRTOS SMP doesn’t make use of it when selecting a task to run. Thank you for pointing it out. We would discuss about if we can use the porting supported function to speed up the task selection in FreeRTOS SMP.

Selecting a task to run is more involved in SMP as compared to single core (single core only requires just picking the highest priority ready task). As a result, it cannot be implemented with one clz. As @Fresh pointed out, we will look if there are pieces of this code which can be optimized for certain hardware.