049f8d796a sched: fix locking in a653sched_free_vdata()
Signed-off-by: Anderson Choi
---
Changes:
v1 -> v2
* changed the title to show clearly which scheduler is modified
---
xen/common/sched/arinc653.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/xen/common/sched
049f8d796a sched: fix locking in a653sched_free_vdata()
Signed-off-by: Anderson Choi
---
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 0a3733c04e90..b95492e1d96f 100644
--- a/xen/co
by using the value
next_major_frame as the base to calculate the start of major frame and
the next domain switch time. In addition, push next_switch_time until
it's behind the current time to ensure positive runtime for the newly
selected domain to run.
Signed-off-by: Anderson Choi
---
Cc: Nathan Studer
me.
Signed-off-by: Anderson Choi
Suggested-by: Nathan Studer
---
Changes in v2:
- Changed the logic to resync major frame and to find correct
minor frame after a miss suggested by Nathan
---
xen/common/sched/arinc653.c | 38 -
1 file changed, 21 insertion
e.
Per suggestion from Stewart Hildebrand, the while loop to calculate the
start of next major frame can be eliminated by using a modulo operation.
Fixes: 22787f2e107c ("ARINC 653 scheduler")
Suggested-by: Stewart Hildebrand
Suggested-by: Nathan Studer
Signed-off-by: Anderson Choi
e.
Per suggestion from Stewart Hildebrand, use a modulo operation to
calculate the start of next major frame.
Fixes: 22787f2e107c ("ARINC 653 scheduler")
Suggested-by: Stewart Hildebrand
Suggested-by: Nathan Studer
Signed-off-by: Anderson Choi
---
Changes in v4:
- Check if sched_p