lkml.org 
[lkml]   [2011]   [Mar]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [patch 02/15] sched: validate CFS quota hierarchies
    On Tue, Mar 22, 2011 at 08:03:28PM -0700, Paul Turner wrote:
    > Add constraints validation for CFS bandwidth hierachies.
    >
    > +static u64 normalize_cfs_quota(struct task_group *tg,
    > + struct cfs_schedulable_data *d)
    > +{
    > + u64 quota, period;
    > + struct load_weight lw;
    > +
    > + if (tg == d->tg) {
    > + period = d->period;
    > + quota = d->quota;
    > + } else {
    > + period = tg_get_cfs_period(tg);
    > + quota = tg_get_cfs_quota(tg);
    > + }
    > +
    > + if (quota == RUNTIME_INF)
    > + return RUNTIME_INF;
    > +
    > + lw.weight = period;
    > + lw.inv_weight = 0;
    > +
    > + return calc_delta_mine(quota, max_cfs_quota_period, &lw) - 1;

    Time to rename calc_delta_mine to something more meaningful ?

    Regards,
    Bharata.


    \
     
     \ /
      Last update: 2011-03-24 07:33    [W:0.027 / U:30.000 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site