diff options
author | Sander Vanheule <sander@svanheule.net> | 2020-12-12 17:02:00 +0100 |
---|---|---|
committer | Petr Štetiar <ynezz@true.cz> | 2020-12-22 19:11:50 +0100 |
commit | f4b687d1f05316bc0569c16a6a8a9fd8984b9e74 (patch) | |
tree | 65ea5ab72d05a392d544033aafa93746da19f8ee | |
parent | cb41bc508856167ce302c31c2fc73829238f8611 (diff) | |
download | upstream-f4b687d1f05316bc0569c16a6a8a9fd8984b9e74.tar.gz upstream-f4b687d1f05316bc0569c16a6a8a9fd8984b9e74.tar.bz2 upstream-f4b687d1f05316bc0569c16a6a8a9fd8984b9e74.zip |
realtek: use kernel defined halt
If _machine_hang is not defined on MIPS, the kernel will check if the
CPU can enter a more power efficient sleep mode. Since the realtek
platform supports mips32_r2, this should issue a WAIT instruction
instead of a trivial infinite loop.
Signed-off-by: Sander Vanheule <sander@svanheule.net>
-rw-r--r-- | target/linux/realtek/files-5.4/arch/mips/rtl838x/setup.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/target/linux/realtek/files-5.4/arch/mips/rtl838x/setup.c b/target/linux/realtek/files-5.4/arch/mips/rtl838x/setup.c index dbabb0354b..24c70b8274 100644 --- a/target/linux/realtek/files-5.4/arch/mips/rtl838x/setup.c +++ b/target/linux/realtek/files-5.4/arch/mips/rtl838x/setup.c @@ -59,19 +59,12 @@ static void rtl838x_restart(char *command) sw_w32(1, RTL838X_RST_GLB_CTRL_1); } -static void rtl838x_halt(void) -{ - pr_info("System halted.\n"); - while(1); -} - void __init plat_mem_setup(void) { void *dtb; set_io_port_base(KSEG1); _machine_restart = rtl838x_restart; - _machine_halt = rtl838x_halt; if (fw_passed_dtb) /* UHI interface */ dtb = (void *)fw_passed_dtb; |