[PATCH] score: Optimize EDF SMP scheduler ops

Joel Sherrill joel at rtems.org
Tue Oct 5 19:11:28 UTC 2021


On Tue, Oct 5, 2021, 1:49 PM Sebastian Huber <
sebastian.huber at embedded-brains.de> wrote:

> 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.
>

Yeah. Makes sense. Does make you wonder if this is an edge case that
shouldn't work

>
> --
> 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