All of lore.kernel.org
 help / color / mirror / Atom feed
From: sboyd@codeaurora.org (Stephen Boyd)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v6 3/5] ARM: soft_restart: disable the outer L2 when the last CPU is going down
Date: Wed, 16 Nov 2011 10:20:08 -0800	[thread overview]
Message-ID: <4EC3FED8.7000307@codeaurora.org> (raw)
In-Reply-To: <1321466057-19721-4-git-send-email-will.deacon@arm.com>

On 11/16/11 09:54, Will Deacon wrote:
> diff --git a/arch/arm/kernel/process.c b/arch/arm/kernel/process.c
> index 577d092..664d351 100644
> --- a/arch/arm/kernel/process.c
> +++ b/arch/arm/kernel/process.c
> @@ -137,6 +137,10 @@ void soft_restart(unsigned long addr)
>  	local_irq_disable();
>  	local_fiq_disable();
>  
> +	/* Disable the L2 if we're the last man standing. */
> +	if (num_online_cpus() == 1)
> +		outer_disable();
> +

When does this code execute on another cpu? My understanding is that
soft_restart() is only called on one CPU so I would think checking the
number of online cpus isn't necessary.

-- 
Sent by an employee of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.

  reply	other threads:[~2011-11-16 18:20 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-16 17:54 [PATCH v6 0/5] kexec fixes and soft restart code Will Deacon
2011-11-16 17:54 ` [PATCH v6 1/5] ARM: lib: add call_with_stack function for safely changing stack Will Deacon
2011-11-22 13:42   ` Catalin Marinas
2011-11-16 17:54 ` [PATCH v6 2/5] ARM: reset: implement soft_restart for jumping to a physical address Will Deacon
2011-11-22 13:41   ` Catalin Marinas
2011-11-22 13:54     ` Dave Martin
2011-11-22 14:15     ` Will Deacon
2011-11-16 17:54 ` [PATCH v6 3/5] ARM: soft_restart: disable the outer L2 when the last CPU is going down Will Deacon
2011-11-16 18:20   ` Stephen Boyd [this message]
2011-11-16 18:30     ` Will Deacon
2011-11-16 21:59       ` Stephen Boyd
2011-11-16 17:54 ` [PATCH v6 4/5] ARM: stop: execute platform callback from cpu_stop code Will Deacon
2011-11-16 17:54 ` [PATCH v6 5/5] ARM: kexec: use soft_restart for branching to the reboot buffer Will Deacon

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=4EC3FED8.7000307@codeaurora.org \
    --to=sboyd@codeaurora.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.