From: Steven Rostedt (Red Hat) Date: Thu, 9 May 2013 19:00:07 +0000 (-0400) Subject: tracing: Add helper function trace_create_new_event() to remove duplicate code X-Git-Tag: v3.10-rc1~1^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=da511bf33e47ea1f33f4b672f7da166d2a1b8a91;p=pandora-kernel.git tracing: Add helper function trace_create_new_event() to remove duplicate code Both __trace_add_new_event() and __trace_early_add_new_event() do basically the same thing, except that __trace_add_new_event() does a little more. Instead of having duplicate code between the two functions, add a helper function trace_create_new_event() that both can use. This will help against having bugs fixed in one function but not the other. Cc: Masami Hiramatsu Signed-off-by: Steven Rostedt --- Reading git-diff-tree failed