sh: Fix up stack overflow check with ftrace disabled.
authorPaul Mundt <lethal@linux-sh.org>
Sat, 11 Jul 2009 12:06:53 +0000 (21:06 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Sat, 11 Jul 2009 12:06:53 +0000 (21:06 +0900)
commite460ab27b6c3ea313762169713086529d5bfb8bc
treea3d0cba85bf3118da4465037c18c6390cac14635
parenta470b95e99ea77ef1e307ff181e59a4a16caa4f4
sh: Fix up stack overflow check with ftrace disabled.

Presently the STACK_CHECK() code is called in to multiple times, although
it's only necessary from the mcount entry. The code still attempts to
treat the nop case as an ftrace path resulting in superfluous code flow
for the case where ftrace is disabled. And finally, this also fixes up
references to a few undefined symbols when FUNCTION_TRACER=n.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/lib/mcount.S