Skip to contentSkip to conversation

arinc653: remove idle period in default schedule

PATCH In review Stewart Hildebrand 2 participants 2 messages Mar 26

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arinc653: remove idle period in default schedule

By initializing major_frame in a653sched_init(), an idle period was inadvertently introduced into the default schedule. Account for the initial value of major_frame when populating the default schedule.

Fixes f2927d8343ae ("xen/arinc653: fix delay in the start of major frame")
---
 xen/common/sched/arinc653.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
xen/common/sched/arinc653.c +2 -1
index 8a4f4259d8b3..b709bcfcc8a4 100644
@@ -425,7 +425,8 @@ a653sched_alloc_udata(const struct scheduler *ops, struct sched_unit *unit,
             sched_priv->schedule[entry].runtime = DEFAULT_TIMESLICE;
             sched_priv->schedule[entry].unit = unit;
 
-            sched_priv->major_frame += DEFAULT_TIMESLICE;
+            if ( entry )
+                sched_priv->major_frame += DEFAULT_TIMESLICE;
             ++sched_priv->num_schedule_entries;
         }
     }

base-commit: 5ebd4dd14118e4eb24f1d409a7ca3773f77e7e41

Signature · 1 line
2.53.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 6 lines · Stewart Hildebrand

By initializing major_frame in a653sched_init(), an idle period was inadvertently introduced into the default schedule. Account for the initial value of major_frame when populating the default schedule.

Fixes f2927d8343ae ("xen/arinc653: fix delay in the start of major frame")

Juergen