|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH] xen:rtds: Update last_start whenever cur_budget is updated
We keep last_start updated whenever cur_budget is updated.
This avoids subtle bugs in case burn_budget() will be called
in other places in the future.
Signed-off-by: Meng Xu <mengxu@xxxxxxxxxxxxx>
---
Cc: Dario Faggioli <dario.faggioli@xxxxxxxxxx>
Cc: George Dunlap <George.Dunlap@xxxxxxxxxxxxx>
Cc: Wei Liu <wei.liu2@xxxxxxxxxx>
Cc: Linh Thi Xuan Phan <linhphan@xxxxxxxxxxxxx>
Cc: Haoran Li <lihaoran@xxxxxxxxx>
Cc: Meng Xu <xumengpanda@xxxxxxxxx>
Cc: Dagaen Golomb <dgolomb@xxxxxxxxxxxxx>
Cc: Tianyang Chen <tiche@xxxxxxxxxxxxx>
---
xen/common/sched_rt.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/xen/common/sched_rt.c b/xen/common/sched_rt.c
index 4b4f232..434b773 100644
--- a/xen/common/sched_rt.c
+++ b/xen/common/sched_rt.c
@@ -953,6 +953,7 @@ burn_budget(const struct scheduler *ops, struct rt_vcpu
*svc, s_time_t now)
}
svc->cur_budget -= delta;
+ svc->last_start = now;
if ( svc->cur_budget <= 0 )
{
--
1.9.1
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
https://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |