[PATCH] score: Optimize EDF SMP scheduler ops

Sebastian Huber sebastian.huber at embedded-brains.de
Tue Oct 5 18:49:51 UTC 2021


On 05/10/2021 20:34, Joel Sherrill wrote:
> On Tue, Oct 5, 2021 at 1:26 PM Sebastian Huber
> <sebastian.huber at embedded-brains.de>  wrote:
>> The schedule operation is only called by rtems_task_mode().  It is
>> called if preempt mode of the executing thread changes from disabled to
>> enabled.  Since the EDF SMP scheduler does not support the disabled
>> preemption mode, the schedule operation is never called.
> Pulling this logic thread further, since disable preemption is not available in
> SMP configurations, why even have this callout at all in SMP mode?
> 
> That should ripple up to rtems_task_mode() and eliminate some code also.

If you have only one processor configured and you use a non-SMP 
scheduler, then the disabled preemption mode is also supported in SMP 
configurations.

-- 
embedded brains GmbH
Herr Sebastian HUBER
Dornierstr. 4
82178 Puchheim
Germany
email: sebastian.huber at embedded-brains.de
phone: +49-89-18 94 741 - 16
fax:   +49-89-18 94 741 - 08

Registergericht: Amtsgericht München
Registernummer: HRB 157899
Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler
Unsere Datenschutzerklärung finden Sie hier:
https://embedded-brains.de/datenschutzerklaerung/


More information about the devel mailing list