| commit | 64fbcd162819bddaf0d99e78b16371b655aa5dee | [log] [tgz] |
|---|---|---|
| author | Xiao Guangrong <xiaoguangrong@cn.fujitsu.com> | Wed Jul 15 12:32:15 2009 +0800 |
| committer | Frederic Weisbecker <fweisbec@gmail.com> | Fri Jul 17 00:37:53 2009 -0400 |
| tree | abc34dd23386f13675502455d99d868b9b63173e | |
| parent | da706d8bc833e7153622435560422e653bdb2e94 [diff] |
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 <xiaoguangrong@cn.fujitsu.com> Reviewed-by: Li Zefan <lizf@cn.fujitsu.com> Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>