From: Xiao Guangrong Date: Wed, 15 Jul 2009 04:32:15 +0000 (+0800) Subject: tracing/function: Simplify __ftrace_replace_code() X-Git-Tag: v2.6.32-rc1~718^2~82 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=64fbcd162819bddaf0d99e78b16371b655aa5dee;p=pandora-kernel.git tracing/function: Simplify __ftrace_replace_code() Rewrite the __ftrace_replace_code() function, simplify it, but don't change the code's logic. First, we get the state we want to set, if the record has the same state, then do nothing, otherwise enable/disable it. Signed-off-by: Xiao Guangrong Reviewed-by: Li Zefan Signed-off-by: Frederic Weisbecker --- Reading git-diff-tree failed