ar71xx: disable irq on reboot to fix hang issues (fixes #17839)
Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42955 3c298f89-4303-0410-b956-a3cf2f4a3e73master
parent
31cedb36a2
commit
f5a97a37e3
|
@ -0,0 +1,10 @@
|
||||||
|
--- a/arch/mips/ath79/setup.c
|
||||||
|
+++ b/arch/mips/ath79/setup.c
|
||||||
|
@@ -40,6 +40,7 @@ static char ath79_sys_type[ATH79_SYS_TYP
|
||||||
|
|
||||||
|
static void ath79_restart(char *command)
|
||||||
|
{
|
||||||
|
+ local_irq_disable();
|
||||||
|
ath79_device_reset_set(AR71XX_RESET_FULL_CHIP);
|
||||||
|
for (;;)
|
||||||
|
if (cpu_wait)
|
|
@ -0,0 +1,10 @@
|
||||||
|
--- a/arch/mips/ath79/setup.c
|
||||||
|
+++ b/arch/mips/ath79/setup.c
|
||||||
|
@@ -40,6 +40,7 @@ static char ath79_sys_type[ATH79_SYS_TYP
|
||||||
|
|
||||||
|
static void ath79_restart(char *command)
|
||||||
|
{
|
||||||
|
+ local_irq_disable();
|
||||||
|
ath79_device_reset_set(AR71XX_RESET_FULL_CHIP);
|
||||||
|
for (;;)
|
||||||
|
if (cpu_wait)
|
Loading…
Reference in New Issue