realtek: use kernel defined halt
authorSander Vanheule <sander@svanheule.net>
Sat, 12 Dec 2020 16:02:00 +0000 (17:02 +0100)
committerPetr Štetiar <ynezz@true.cz>
Tue, 22 Dec 2020 18:11:50 +0000 (19:11 +0100)
commitf4b687d1f05316bc0569c16a6a8a9fd8984b9e74
tree65ea5ab72d05a392d544033aafa93746da19f8ee
parentcb41bc508856167ce302c31c2fc73829238f8611
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>
target/linux/realtek/files-5.4/arch/mips/rtl838x/setup.c