[PATCH 6/7] ARM: restart: only perform setup for restart when soft-restarting
Viresh Kumar
viresh.kumar at st.com
Thu Nov 17 22:29:14 EST 2011
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 at 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 at st.com>
--
viresh
More information about the linux-arm-kernel
mailing list