android_kernel_samsung_univ.../arch/mips/ralink
NeilBrown f56bf442fb MIPS: ralink: Remove ralink_halt()
commit 891731f6a5dbe508d12443175a7e166a2fba616a upstream.

ralink_halt() does nothing that machine_halt() doesn't already do, so it
adds no value.

It actually causes incorrect behaviour due to the "unreachable()" at the
end. This tells the compiler that the end of the function will never be
reached, which isn't true. The compiler responds by not adding a
'return' instruction, so control simply moves on to whatever bytes come
afterwards in memory. In my tested, that was the ralink_restart()
function. This means that an attempt to 'halt' the machine would
actually cause a reboot.

So remove ralink_halt() so that a 'halt' really does halt.

Fixes: c06e836ada ("MIPS: ralink: adds reset code")
Signed-off-by: NeilBrown <neil@brown.name>
Cc: John Crispin <john@phrozen.org>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: linux-mips@linux-mips.org
Cc: <stable@vger.kernel.org> # 3.9+
Patchwork: https://patchwork.linux-mips.org/patch/18851/
Signed-off-by: James Hogan <jhogan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-03-28 18:40:12 +02:00
..
bootrom.c
cevt-rt3352.c MIPS: ralink: Fix invalid tick count 2015-11-11 08:38:04 +01:00
clk.c clocksource: cosmetic: Drop OF 'dependency' from symbols 2015-10-01 02:18:39 +02:00
common.h
early_printk.c MIPS: ralink: Add tty detection 2015-11-11 08:38:03 +01:00
ill_acc.c
irq.c genirq: Remove irq argument from irq flow handlers 2015-09-16 15:47:51 +02:00
Kconfig
Makefile
mt7620.c MIPS: ralink: Fix typo in mt7628 pinmux function 2017-11-30 08:37:19 +00:00
of.c MIPS: Make MIPS_CMDLINE_DTB default 2015-11-11 08:38:37 +01:00
Platform
prom.c MIPS: ralink: Cosmetic change to prom_init(). 2017-03-18 19:09:56 +08:00
reset.c MIPS: ralink: Remove ralink_halt() 2018-03-28 18:40:12 +02:00
rt288x.c MIPS: ralink: Fix invalid assignment of SoC type 2017-07-05 14:37:17 +02:00
rt305x.c MIPS: ralink: Remove unused rt*_wdt_reset functions 2017-03-18 19:09:56 +08:00
rt3883.c MIPS: ralink: Fix incorrect assignment on ralink_soc 2017-10-08 10:14:16 +02:00
timer.c