[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAE9FiQVmF6Ho-+p1gncxJR_eM7Wg-c9c7tN-e+YWMs5PKkAYVA@mail.gmail.com>
Date: Tue, 10 Dec 2013 13:26:50 -0800
From: Yinghai Lu <yinghai@...nel.org>
To: Peter Zijlstra <peterz@...radead.org>
Cc: David Rientjes <rientjes@...gle.com>,
Ingo Molnar <mingo@...nel.org>,
"H. Peter Anvin" <hpa@...or.com>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
srikar@...ux.vnet.ibm.com, Thomas Gleixner <tglx@...utronix.de>,
"linux-tip-commits@...r.kernel.org"
<linux-tip-commits@...r.kernel.org>
Subject: Re: [tip:sched/urgent] sched: Check sched_domain before computing
group power
On Tue, Dec 10, 2013 at 2:58 AM, Peter Zijlstra <peterz@...radead.org> wrote:
> Ooh, sg_capacity() is generating the /0..
>
> Does the below work too?
>
> ---
> kernel/sched/core.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/kernel/sched/core.c b/kernel/sched/core.c
> index 87c3bc47d99d..40b185f5a3ec 100644
> --- a/kernel/sched/core.c
> +++ b/kernel/sched/core.c
> @@ -5115,6 +5115,7 @@ build_overlap_sched_groups(struct sched_domain *sd, int cpu)
> * die on a /0 trap.
> */
> sg->sgp->power = SCHED_POWER_SCALE * cpumask_weight(sg_span);
> + sg->sgp->power_orig = sg->sgp->power;
>
> /*
> * Make sure the first group of this domain contains the
Yes, it works.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists