sparc64: Fix SMP bootup with CONFIG_STACK_DEBUG or ftrace.
authorDavid S. Miller <davem@davemloft.net>
Tue, 16 Sep 2008 18:44:00 +0000 (11:44 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Sep 2008 18:44:00 +0000 (11:44 -0700)
commita3fef64a140a25b5316485e80196cc9e36043cc3
tree989c39138718d8ea005a8fcf9651da19a2f270a8
parenta592827799a217c5bfc4024e7c2265ad2fd75f17
sparc64: Fix SMP bootup with CONFIG_STACK_DEBUG or ftrace.

Based upon a report by Meelis Roos.

Any function call can try to access the current
thread register via the _mcount hooks when the kernel
is built with -pg (via ftrace or STACK_DEBUG).

That can't be setup properly very early on during
the bootup of other cpus for sun4u and some early
sun4v systems.

So add notrace markers to these specific functions, so
that _mcount doesn't get invoked too early.

Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc64/kernel/irq.c
arch/sparc64/kernel/traps.c