MIPS: ftrace: Fix icache flush range error
authorViller Hsiao <villerhsiao@gmail.com>
Sat, 22 Feb 2014 07:46:49 +0000 (15:46 +0800)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 17 Mar 2014 14:42:07 +0000 (15:42 +0100)
commita4671094227d11985c06ee1178d7205c5fd39f8a
tree78e1b59f3b9803c1ac6e3ef702fdc2f3da06c969
parent86ca57b5a5525dbf89fc2a3285781fae807276b0
MIPS: ftrace: Fix icache flush range error

In 32-bit mode, the start address passed to flush_icache_range is
shifted by 4 bytes before the second safe_store_code() call.

This causes system crash from time to time because the first 4 bytes
might not be flushed properly. This bug exists since linux-3.8.

Also remove obsoleted comment while at it.

Signed-off-by: Viller Hsiao <villerhsiao@gmail.com>
Cc: linux-mips@linux-mips.org
Cc: rostedt@goodmis.org
Cc: fweisbec@gmail.com
Cc: mingo@redhat.com
Cc: Qais.Yousef@imgtec.com
Patchwork: https://patchwork.linux-mips.org/patch/6586/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/ftrace.c