|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-unstable] Don't modify global active weight when ch
# HG changeset patch
# User ack@xxxxxxxxxxxxxxxxxxxxx
# Node ID 64f9f308e109dc7ec6b8964f093926bd4b8957d2
# Parent 17e9daeb2c504389a8de8b5ed814bbe75878dca3
Don't modify global active weight when changing weight of inactive domain.
Signed-off-by: Emmanuel Ackaouy <ack@xxxxxxxxxxxxx>
---
xen/common/sched_credit.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff -r 17e9daeb2c50 -r 64f9f308e109 xen/common/sched_credit.c
--- a/xen/common/sched_credit.c Fri Jun 30 14:41:13 2006 +0100
+++ b/xen/common/sched_credit.c Fri Jun 30 17:12:05 2006 +0100
@@ -622,9 +622,12 @@ csched_dom_cntl(
if ( cmd->u.credit.weight != 0 )
{
- csched_priv.weight -= sdom->weight;
+ if ( !list_empty(&sdom->active_sdom_elem) )
+ {
+ csched_priv.weight -= sdom->weight;
+ csched_priv.weight += cmd->u.credit.weight;
+ }
sdom->weight = cmd->u.credit.weight;
- csched_priv.weight += sdom->weight;
}
if ( cmd->u.credit.cap != (uint16_t)~0U )
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] [xen-unstable] Don't modify global active weight when changing weight of inactive domain.,
Xen patchbot-unstable <=
|
|
|
|
|