sh: ftrace: Make code modification NMI safe.
authorPaul Mundt <lethal@linux-sh.org>
Tue, 13 Oct 2009 07:52:50 +0000 (16:52 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Tue, 13 Oct 2009 07:52:50 +0000 (16:52 +0900)
commite4b053d96ae4e23e7023eb9f591bd7fc5c9c8cb9
tree16e25333605c6919ce85ae9a43e970dc0dd516f4
parentc8afde7f40577b80d30aa8abcdee74c76a4b800a
sh: ftrace: Make code modification NMI safe.

This cribs the x86 implementation of ftrace_nmi_enter() and friends to
make ftrace_modify_code() NMI safe, particularly on SMP configurations.

For additional notes on the problems involved, see the comment below
ftrace_call_replace().

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/Kconfig
arch/sh/kernel/ftrace.c