lkml.org 
[lkml]   [2009]   [Aug]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH 14/15] sched: Conditionally limit __cpu_power when child sched domain has type NODE

    We need this in case of performance policy. All sched_groups in
    child's parent domain (MN in this case) should be limited such that
    tasks are balanced among these sched_groups.

    Signed-off-by: Andreas Herrmann <andreas.herrmann3@amd.com>
    ---
    kernel/sched.c | 4 ++--
    1 files changed, 2 insertions(+), 2 deletions(-)

    diff --git a/kernel/sched.c b/kernel/sched.c
    index 0c950dc..ab88d88 100644
    --- a/kernel/sched.c
    +++ b/kernel/sched.c
    @@ -8555,11 +8555,11 @@ static void init_sched_groups_power(int cpu, struct sched_domain *sd)
    */
    if (!(sd->flags & SD_POWERSAVINGS_BALANCE) &&
    ((child->flags &
    - (SD_SHARE_CPUPOWER | SD_SHARE_PKG_RESOURCES)))) {
    + (SD_SHARE_CPUPOWER | SD_SHARE_PKG_RESOURCES)) ||
    + (child->level == SD_LV_NODE))) {
    sd->groups->__cpu_power = 0;
    sg_inc_cpu_power(sd->groups, SCHED_LOAD_SCALE);
    }
    -
    }

    /*
    --
    1.6.0.4




    \
     
     \ /
      Last update: 2009-08-20 15:49    [W:0.024 / U:7.488 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site