search for: csched_dom_cntl

Displaying 2 results from an estimated 2 matches for "csched_dom_cntl".

2010 Aug 09
2
[PATCH 0 of 2] Scheduler: Implement yield for credit scheduler
As discussed in a previous e-mail, this patch series implements yield for the credit scheduler. This allows a VM to actually yield (give up the cpu to another VM) when it wants to. This has been shown to be effective when used in the spinlock code to avoid wasting time spinning when another vcpu is not currently scheduled. _______________________________________________ Xen-devel mailing list
2013 Nov 13
3
[Patch] credit: Update other parameters when setting tslice_ms
...insertions(+), 7 deletions(-) mode change 100644 => 100755 xen/common/sched_credit.c diff --git a/xen/common/sched_credit.c b/xen/common/sched_credit.c old mode 100644 new mode 100755 index 28dafcf..db5512e --- a/xen/common/sched_credit.c +++ b/xen/common/sched_credit.c @@ -1071,6 +1071,17 @@ csched_dom_cntl( return 0; } +static inline void +__csched_set_tslice(struct csched_private *prv, unsigned timeslice) +{ + prv->tslice_ms = timeslice; + prv->ticks_per_tslice = CSCHED_TICKS_PER_TSLICE; + if ( prv->tslice_ms < prv->ticks_per_tslice ) + prv->ticks_per_tslice...