MIPS, Tracing: Speed up function graph tracer
authorWu Zhangjin <wuzhangjin@gmail.com>
Wed, 19 Jan 2011 19:28:27 +0000 (03:28 +0800)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 14 Mar 2011 20:07:24 +0000 (21:07 +0100)
commit9a620a559be65023b5fd5d0eaf37dae884c4f404
tree3c7e7d69c6ee14088ac8bf08499d9e8afce2710c
parent52bd080d5c87af556bf71e3b07bdd8586166c43b
MIPS, Tracing: Speed up function graph tracer

This simply moves the "ip-=4" statement down to the end of the do { ...
} while (...); loop, which reduces one unneeded subtration and the
subsequent memory loading and comparison.

Signed-off-by: Wu Zhangjin <wuzhangjin@gmail.com>
Cc: Steven Rostedt <srostedt@redhat.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/2006/
Signed-off-by: Ralf Baechle <ralf@duck.linux-mips.net>
arch/mips/kernel/ftrace.c