linux-sh.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Viresh Kumar <viresh.kumar@st.com>
To: linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH 6/7] ARM: restart: only perform setup for restart when
Date: Fri, 18 Nov 2011 03:41:14 +0000	[thread overview]
Message-ID: <4EC5D10A.1020402@st.com> (raw)
In-Reply-To: <20111117174247.GF9581@n2100.arm.linux.org.uk>

On 11/17/2011 11:12 PM, Russell King - ARM Linux wrote:
>> We only need to set the system up for a soft-restart if we're going to
>> be doing a soft-restart.  Provide a new function (soft_restart()) which
>> does the setup and final call for this, and make platforms use it.
>> Eliminate the call to setup_restart() from the default handler.
>>
>> This means that platforms arch_reset() function is no longer called with
>> the page tables prepared for a soft-restart, and caches will still be
>> enabled.
>>
>> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
>> ---
> 
> diff --git a/arch/arm/plat-spear/include/plat/system.h b/arch/arm/plat-spear/include/plat/system.h
>> index a235fa0..1171f22 100644
>> --- a/arch/arm/plat-spear/include/plat/system.h
>> +++ b/arch/arm/plat-spear/include/plat/system.h
>> @@ -31,7 +31,7 @@ static inline void arch_reset(char mode, const char *cmd)
>>  {
>>       if (mode = 's') {
>>               /* software reset, Jump into ROM at address 0 */
>> -             cpu_reset(0);
>> +             soft_restart(0);
>>       } else {
>>               /* hardware reset, Use on-chip reset capability */
>>               sysctl_soft_reset((void __iomem *)VA_SPEAR_SYS_CTRL_BASE);

For SPEAr:

Acked-by: Viresh Kumar <viresh.kumar@st.com>

-- 
viresh

  parent reply	other threads:[~2011-11-18  3:41 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20111106173113.GI12913@n2100.arm.linux.org.uk>
     [not found] ` <E1RN6b9-0001NG-NS@rmk-PC.arm.linux.org.uk>
2011-11-17 17:42   ` [PATCH 6/7] ARM: restart: only perform setup for restart when Russell King - ARM Linux
2011-11-17 18:00     ` Sascha Hauer
2011-11-18  3:41     ` Viresh Kumar [this message]
2011-11-18  7:51     ` [PATCH 6/7] ARM: restart: only perform setup for restart when soft-restarting Krzysztof Halasa
2011-11-18  7:56     ` Paul Mundt
2011-11-18 10:13     ` [PATCH 6/7] ARM: restart: only perform setup for restart when Richard Purdie
2011-11-24  6:47     ` Lennert Buytenhek
2011-12-03  9:23     ` Kukjin Kim
2011-12-03  9:30       ` Russell King - ARM Linux
2011-12-03  9:45         ` Kukjin Kim

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=4EC5D10A.1020402@st.com \
    --to=viresh.kumar@st.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).