mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-11-01 09:13:37 +00:00
IRQs are already disabled by the time arch_reset() is called, so these calls to local_irq_disable() instead arch_reset() are redundant. Remove them. Acked-by: H Hartley Sweeten <hsweeten@visionengravers.com> Acked-by: Nicolas Pitre <nico@linaro.org> Acked-by: Will Deacon <will.deacon@arm.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
22 lines
395 B
C
22 lines
395 B
C
/*
|
|
* arch/arm/mach-ep93xx/include/mach/system.h
|
|
*/
|
|
|
|
#include <mach/hardware.h>
|
|
|
|
static inline void arch_idle(void)
|
|
{
|
|
cpu_do_idle();
|
|
}
|
|
|
|
static inline void arch_reset(char mode, const char *cmd)
|
|
{
|
|
/*
|
|
* Set then clear the SWRST bit to initiate a software reset
|
|
*/
|
|
ep93xx_devcfg_set_bits(EP93XX_SYSCON_DEVCFG_SWRST);
|
|
ep93xx_devcfg_clear_bits(EP93XX_SYSCON_DEVCFG_SWRST);
|
|
|
|
while (1)
|
|
;
|
|
}
|