|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [xen stable-4.20] arinc653: remove idle period in default schedule
commit 36366ff7d31dcbc1a935e217a478ccd986f7fc66
Author: Stewart Hildebrand <stewart.hildebrand@xxxxxxx>
AuthorDate: Mon Apr 20 12:33:36 2026 +0200
Commit: Jan Beulich <jbeulich@xxxxxxxx>
CommitDate: Mon Apr 20 12:33:36 2026 +0200
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")
Signed-off-by: Stewart Hildebrand <stewart.hildebrand@xxxxxxx>
Reviewed-by: Juergen Gross <jgross@xxxxxxxx>
master commit: 6d412c059982d821260055eaa43417b3245b2050
master date: 2026-03-26 10:49:11 +0100
---
xen/common/sched/arinc653.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/xen/common/sched/arinc653.c b/xen/common/sched/arinc653.c
index 0cc565f2c8..1b0ed2f9dd 100644
--- a/xen/common/sched/arinc653.c
+++ b/xen/common/sched/arinc653.c
@@ -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;
}
}
--
generated by git-patchbot for /home/xen/git/xen.git#stable-4.20
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |