]> git.karo-electronics.de Git - linux-beck.git/commit
perf sched: Move struct perf_sched definition out of cmd_sched()
authorNamhyung Kim <namhyung.kim@lge.com>
Tue, 4 Jun 2013 05:46:19 +0000 (14:46 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 12 Jul 2013 16:52:35 +0000 (13:52 -0300)
commitf36f83f947ede547833e462696893f866df77324
tree1eba463cd8663ed9ce65f973bb09f00a4971dda5
parent45a9ee1b3fa2d8c3fb7a0c7e5a7b77281a4239a6
perf sched: Move struct perf_sched definition out of cmd_sched()

For some reason it consumed quite amount of compile time when declared
as local variable, and it disappeared when moved out of the function.
Moving other variables/tables didn't help.

On my system this single-file-change build time reduced from 11s to 3s.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/1370324779-16921-1-git-send-email-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-sched.c