ftrace: Cleanup of global variables ftrace_new_pgs and ftrace_update_cnt
authorJiri Slaby <jslaby@suse.cz>
Mon, 24 Feb 2014 18:59:56 +0000 (19:59 +0100)
committerSteven Rostedt <rostedt@goodmis.org>
Fri, 7 Mar 2014 15:06:12 +0000 (10:06 -0500)
commit1dc43cf0be9a94a6a7273db284152db15c526106
tree4db011bc7595eca752582950aabdcb2c7ca5d374
parent114e7b52dee69ce47dd55b8e520e0a48ba7cdae3
ftrace: Cleanup of global variables ftrace_new_pgs and ftrace_update_cnt

Some of them can be local to functions, so make them local and pass
them as parameters where needed:
* __start_mcount_loc+__stop_mcount_loc are local to ftrace_init
* ftrace_new_pgs -> new_pgs/start_pg
* ftrace_update_cnt -> local update_cnt in ftrace_update_code

Link: http://lkml.kernel.org/r/1393268401-24379-1-git-send-email-jslaby@suse.cz
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@redhat.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/ftrace.c