mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Vaidyanathan Srinivasan <svaidy@linux.vnet.ibm.com>
To: Gautham R Shenoy <ego@in.ibm.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>,
	Ingo Molnar <mingo@elte.hu>,
	linux-kernel@vger.kernel.org,
	Suresh Siddha <suresh.b.siddha@intel.com>,
	Balbir Singh <balbir@in.ibm.com>
Subject: Re: [PATCH 3 4/6] sched: Rename the variable sched_mc_preferred_wakeup_cpu
Date: Thu, 19 Mar 2009 22:11:31 +0530	[thread overview]
Message-ID: <20090319164131.GM2990@dirshya.in.ibm.com> (raw)
In-Reply-To: <20090318092238.24787.6657.stgit@sofia.in.ibm.com>

* Gautham R Shenoy <ego@in.ibm.com> [2009-03-18 14:52:38]:

> sched_mc_ preferred_wakeup_cpu is currently used when the user seeks
> power savings through aggressive task consolidation.
> 
> This is applicable for both sched_mc_power_savings as well as
> sched_smt_power_savings. So rename sched_mc_preferred_wakeup_cpu to
> preferred_wakeup_cpu.
> 
> Also fix the comment for preferred_wakeup_cpu.
> 
> Signed-off-by: Gautham R Shenoy <ego@in.ibm.com>
> ---
> 
>  kernel/sched.c      |   12 +++++++-----
>  kernel/sched_fair.c |    2 +-
>  2 files changed, 8 insertions(+), 6 deletions(-)
> 
> diff --git a/kernel/sched.c b/kernel/sched.c
> index 864c6ca..16d7655 100644
> --- a/kernel/sched.c
> +++ b/kernel/sched.c
> @@ -515,11 +515,13 @@ struct root_domain {
>  #endif
>  #if defined(CONFIG_SCHED_MC) || defined(CONFIG_SCHED_SMT)
>  	/*
> -	 * Preferred wake up cpu nominated by sched_mc balance that will be
> -	 * used when most cpus are idle in the system indicating overall very
> -	 * low system utilisation. Triggered at POWERSAVINGS_BALANCE_WAKEUP(2)
> +	 * Preferred wake up cpu which is nominated by load balancer,
> +	 * is the CPU on which the tasks would be woken up, which
> +	 * otherwise would have woken up on an idle CPU even on a system
> +	 * with low-cpu-utilization.
> +	 * This is triggered at POWERSAVINGS_BALANCE_WAKEUP(2).
>  	 */
> -	unsigned int sched_mc_preferred_wakeup_cpu;
> +	unsigned int preferred_wakeup_cpu;
                Good short name :)
>  #endif
>  };
> 
> @@ -3416,7 +3418,7 @@ out_balanced:
>  	if (this == group_leader && group_leader != group_min) {
>  		*imbalance = min_load_per_task;
>  		if (active_power_savings_level >= POWERSAVINGS_BALANCE_WAKEUP) {
> -			cpu_rq(this_cpu)->rd->sched_mc_preferred_wakeup_cpu =
> +			cpu_rq(this_cpu)->rd->preferred_wakeup_cpu =
>  				cpumask_first(sched_group_cpus(group_leader));
>  		}
>  		return group_min;
> diff --git a/kernel/sched_fair.c b/kernel/sched_fair.c
> index a3583c6..03b1e3c 100644
> --- a/kernel/sched_fair.c
> +++ b/kernel/sched_fair.c
> @@ -1052,7 +1052,7 @@ static int wake_idle(int cpu, struct task_struct *p)
> 
>  	this_cpu = smp_processor_id();
>  	chosen_wakeup_cpu =
> -		cpu_rq(this_cpu)->rd->sched_mc_preferred_wakeup_cpu;
> +		cpu_rq(this_cpu)->rd->preferred_wakeup_cpu;
> 
>  	if (active_power_savings_level >= POWERSAVINGS_BALANCE_WAKEUP &&
>  		idle_cpu(cpu) && idle_cpu(this_cpu) &&


Acked-by: Vaidyanathan Srinivasan <svaidy@linux.vnet.ibm.com>

  reply	other threads:[~2009-03-19 16:40 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-18  9:22 [PATCH v3 0/6] sched: Extend sched_mc/smt_framework Gautham R Shenoy
2009-03-18  9:22 ` [PATCH 3 1/6] sched: code cleanup - sd_power_saving_flags(), sd_balance_for_*_power() Gautham R Shenoy
2009-03-19 16:22   ` Vaidyanathan Srinivasan
2009-03-18  9:22 ` [PATCH 3 2/6] sched: Record the current active power savings level Gautham R Shenoy
2009-03-19 16:32   ` Vaidyanathan Srinivasan
2009-03-20  4:34     ` Gautham R Shenoy
2009-03-18  9:22 ` [PATCH 3 3/6] sched: Add Comments at the beginning of find_busiest_group Gautham R Shenoy
2009-03-19 16:38   ` Vaidyanathan Srinivasan
2009-03-18  9:22 ` [PATCH 3 4/6] sched: Rename the variable sched_mc_preferred_wakeup_cpu Gautham R Shenoy
2009-03-19 16:41   ` Vaidyanathan Srinivasan [this message]
2009-03-18  9:22 ` [PATCH 3 5/6] sched: Arbitrate the nomination of preferred_wakeup_cpu Gautham R Shenoy
2009-03-19 17:23   ` Vaidyanathan Srinivasan
2009-03-18  9:22 ` [PATCH 3 6/6] sched: Fix sd_parent_degenerate for SD_POWERSAVINGS_BALANCE Gautham R Shenoy
2009-03-19 16:55   ` Vaidyanathan Srinivasan
2009-03-19 16:57   ` Vaidyanathan Srinivasan
2009-03-19 15:17 ` [PATCH v3 0/6] sched: Extend sched_mc/smt_framework Vaidyanathan Srinivasan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090319164131.GM2990@dirshya.in.ibm.com \
    --to=svaidy@linux.vnet.ibm.com \
    --cc=a.p.zijlstra@chello.nl \
    --cc=balbir@in.ibm.com \
    --cc=ego@in.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=suresh.b.siddha@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®