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 13:59:40 -0800	[thread overview]
Message-ID: <4EC4324C.3000300@codeaurora.org> (raw)
In-Reply-To: <20111116183036.GR4942@mudshark.cambridge.arm.com>

On 11/16/11 10:30, Will Deacon wrote:
> Hi Stephen,
>
> On Wed, Nov 16, 2011 at 06:20:08PM +0000, Stephen Boyd wrote:
>> 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.
> Currently, yes, this only executes on one CPU. The code is there in case
> we want to implement a SMP kexec solution that doesn't require CPU hotplug
> at some point.
>
> I suppose you could end up in a situation where the reset path leads to a
> soft reboot and you haven't dealt with the secondaries at this point, but
> then you have bigger problems to worry about (namely that whatever you jump
> to after turning the MMU off needs to deal with the secondaries somehow).

Fair enough. I was just curious.

-- 
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 21:59 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
2011-11-16 18:30     ` Will Deacon
2011-11-16 21:59       ` Stephen Boyd [this message]
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=4EC4324C.3000300@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.