mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Mike Galbraith <efault@gmx.de>
To: Alex Shi <alex.shi@intel.com>
Cc: mingo@redhat.com, peterz@infradead.org,
	linux-kernel@vger.kernel.org, suresh.b.siddha@intel.com
Subject: Re: [PATCH 1/2] sched: recover SD_WAKE_AFFINE in select_task_rq_fair and code clean up
Date: Thu, 26 Jul 2012 11:37:37 +0200	[thread overview]
Message-ID: <1343295457.6863.43.camel@marge.simpson.net> (raw)
In-Reply-To: <1343280446-24019-1-git-send-email-alex.shi@intel.com>

On Thu, 2012-07-26 at 13:27 +0800, Alex Shi wrote:

> 	if (affine_sd) {
> -		if (cpu == prev_cpu || wake_affine(affine_sd, p, sync))
> +		if (wake_affine(affine_sd, p, sync))
>  			prev_cpu = cpu;
>  
>  		new_cpu = select_idle_sibling(p, prev_cpu);

Hm, if cpu == prev_cpu, asking wake_affine() if it's ok to put wakee
back where it came from is wasted cycles.. that's where the task is
headed regardless of reply.

-Mike


  parent reply	other threads:[~2012-07-26  9:37 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-26  5:27 Alex Shi
2012-07-26  5:27 ` [PATCH 2/2] sched: fix a logical error in select_task_rq_fair Alex Shi
2012-07-26  8:17   ` Peter Zijlstra
2012-07-26  9:11     ` Alex Shi
2012-07-27  1:50       ` Alex Shi
2012-07-26  9:37 ` Mike Galbraith [this message]
2012-07-26  9:42   ` [PATCH 1/2] sched: recover SD_WAKE_AFFINE in select_task_rq_fair and code clean up Alex Shi
2012-07-27  1:47   ` Alex Shi
2012-07-27  3:22     ` Mike Galbraith
2012-07-27  8:32     ` Peter Zijlstra
2012-07-27 14:42       ` Alex Shi
2012-08-13 12:33       ` Alex Shi
2012-08-13 17:14         ` [tip:sched/core] " tip-bot for Alex Shi

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=1343295457.6863.43.camel@marge.simpson.net \
    --to=efault@gmx.de \
    --cc=alex.shi@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=peterz@infradead.org \
    --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

Powered by JetHome