public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Dave Kleikamp <dave.kleikamp@oracle.com>
To: Andi Kleen <andi@firstfloor.org>
Cc: Thomas Gleixner <tglx@linutronix.de>,
	Chris Mason <chris.mason@oracle.com>,
	Peter Zijlstra <a.p.zijlstra@chello.nl>,
	Tim Chen <tim.c.chen@linux.intel.com>,
	linux-kernel@vger.kernel.org, lenb@kernel.org,
	paulmck@us.ibm.com
Subject: Re: idle issues running sembench on 128 cpus II
Date: Thu, 05 May 2011 10:24:30 -0500	[thread overview]
Message-ID: <4DC2C12E.1070101@oracle.com> (raw)
In-Reply-To: <20110504234806.GF2925@one.firstfloor.org>

On 05/04/2011 06:48 PM, Andi Kleen wrote:
>> Here's a new patch without the raw. Boots on my Westmere.
>
> Sorry appended the old patch. Here's really the new version.
>
> From: Andi Kleen<ak@linux.intel.com>
> Date: Wed, 4 May 2011 15:09:27 -0700
> Subject: [PATCH] Move C3 stop test outside lock
>
> Avoid taking locks in the idle path for systems where the timer
> doesn't stop in C3.
>
> Signed-off-by: Andi Kleen<ak@linux.intel.com>
>
> diff --git a/kernel/time/tick-broadcast.c b/kernel/time/tick-broadcast.c
> index da800ff..7f565b7 100644
> --- a/kernel/time/tick-broadcast.c
> +++ b/kernel/time/tick-broadcast.c
> @@ -456,23 +456,22 @@ void tick_broadcast_oneshot_control(unsigned long reason)
>   	unsigned long flags;
>   	int cpu;
>
> -	raw_spin_lock_irqsave(&tick_broadcast_lock, flags);
> -
>   	/*
>   	 * Periodic mode does not care about the enter/exit of power
>   	 * states
>   	 */
>   	if (tick_broadcast_device.mode == TICKDEV_MODE_PERIODIC)
> -		goto out;
> +		return;
>
> -	bc = tick_broadcast_device.evtdev;
>   	cpu = smp_processor_id();
> +	bc = tick_broadcast_device.evtdev;
>   	td =&per_cpu(tick_cpu_device, cpu);
>   	dev = td->evtdev;
>
>   	if (!(dev->features&  CLOCK_EVT_FEAT_C3STOP))
> -		goto out;
> +		return;

out: is now defined but not used in this function.

>
> +	raw_spin_lock_irqsave(&tick_broadcast_lock, flags);
>   	if (reason == CLOCK_EVT_NOTIFY_BROADCAST_ENTER) {
>   		if (!cpumask_test_cpu(cpu, tick_get_broadcast_oneshot_mask())) {
>   			cpumask_set_cpu(cpu, tick_get_broadcast_oneshot_mask());
>

  reply	other threads:[~2011-05-05 15:25 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-04 21:47 idle issues running sembench on 128 cpus Dave Kleikamp
2011-05-04 22:04 ` Thomas Gleixner
2011-05-04 22:07 ` Andi Kleen
2011-05-04 22:34   ` Thomas Gleixner
2011-05-04 23:03     ` Andi Kleen
2011-05-04 23:29       ` Thomas Gleixner
2011-05-04 23:42         ` Andi Kleen
2011-05-04 23:47           ` Thomas Gleixner
2011-05-04 23:49             ` Andi Kleen
2011-05-04 23:51               ` Thomas Gleixner
2011-05-04 23:48           ` idle issues running sembench on 128 cpus II Andi Kleen
2011-05-05 15:24             ` Dave Kleikamp [this message]
2011-05-05 13:58         ` idle issues running sembench on 128 cpus Thomas Gleixner

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=4DC2C12E.1070101@oracle.com \
    --to=dave.kleikamp@oracle.com \
    --cc=a.p.zijlstra@chello.nl \
    --cc=andi@firstfloor.org \
    --cc=chris.mason@oracle.com \
    --cc=lenb@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=paulmck@us.ibm.com \
    --cc=tglx@linutronix.de \
    --cc=tim.c.chen@linux.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