tracing: Simplify trace_option_write()
authorLi Zefan <lizf@cn.fujitsu.com>
Tue, 8 Dec 2009 03:17:06 +0000 (11:17 +0800)
committerFrederic Weisbecker <fweisbec@gmail.com>
Sun, 13 Dec 2009 17:37:28 +0000 (18:37 +0100)
commit8d18eaaff5acaa58369be342c86e607643ce10c7
treeff5d275165cd224468a9930f94ac80a53bfc55c7
parent2cbafd68b826f8e0471875cf33cdfb8a1478aef1
tracing: Simplify trace_option_write()

- remove duplicate code inside trace_options_write()
- extract duplicate code in trace_options_write() and set_tracer_option()

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Acked-by: Steven Rostedt <rostedt@goodmis.org>
LKML-Reference: <4B1DC532.9010802@cn.fujitsu.com>
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
kernel/trace/trace.c