linux-stable/arch
NeilBrown 3eaa5de110 MIPS: ralink: Remove ralink_halt()
commit 891731f6a5 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:39:18 +02:00
..
alpha vgacon: Set VGA struct resource types 2018-03-24 11:00:25 +01:00
arc
arm ARM: dts: aspeed-evb: Add unit name to memory node 2018-03-24 11:00:26 +01:00
arm64 arm64: dts: r8a7796: Remove unit-address and reg from integrated cache 2018-03-22 09:17:37 +01:00
avr32
blackfin
c6x
cris
frv
h8300
hexagon
ia64 ia64: fix module loading for gcc-5.4 2018-03-24 11:00:20 +01:00
m32r
m68k m68k: add missing SOFTIRQENTRY_TEXT linker section 2018-02-25 11:05:47 +01:00
metag
microblaze
mips MIPS: ralink: Remove ralink_halt() 2018-03-28 18:39:18 +02:00
mn10300 mn10300/misalignment: Use SIGSEGV SEGV_MAPERR to report a failed user copy 2018-02-17 13:21:20 +01:00
nios2
openrisc
parisc parisc: Handle case where flush_cache_range is called with no context 2018-03-22 09:17:59 +01:00
powerpc KVM: PPC: Book3S PR: Exit KVM on failed mapping 2018-03-24 11:00:11 +01:00
s390 s390/topology: fix typo in early topology code 2018-03-22 09:17:41 +01:00
score
sh SolutionEngine771x: fix Ether platform data 2018-03-03 10:23:27 +01:00
sparc crypto: hash - annotate algorithms taking optional key 2018-02-25 11:05:43 +01:00
tile
um
unicore32
x86 x86/xen: split xen_smp_prepare_boot_cpu() 2018-03-24 11:00:21 +01:00
xtensa xtensa: fix high memory/reserved memory collision 2018-02-28 10:18:30 +01:00
.gitignore
Kconfig