aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-script.c
diff options
context:
space:
mode:
authorAdrian Hunter <[email protected]>2013-10-22 07:34:16 +0000
committerArnaldo Carvalho de Melo <[email protected]>2013-10-23 13:24:29 +0000
commit156a2b022907687f28c72d1ba601015f295cd99e (patch)
treeda0cfbd8ac77c3248f9a0c387713d9b7e68b21e4 /tools/perf/builtin-script.c
parentperf sched: Make struct perf_sched sched a local variable (diff)
downloadkernel-156a2b022907687f28c72d1ba601015f295cd99e.tar.gz
kernel-156a2b022907687f28c72d1ba601015f295cd99e.zip
perf sched: Optimize build time
builtin-sched.c took a log time to build with -O6 optimization. This turned out to be caused by: .curr_pid = { [0 ... MAX_CPUS - 1] = -1 }, Fix by initializing curr_pid programmatically. This addresses the problem cured in f36f83f947ed using a smaller hammer. Signed-off-by: Adrian Hunter <[email protected]> Acked-by: David Ahern <[email protected]> Cc: David Ahern <[email protected]> Cc: Frederic Weisbecker <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Mike Galbraith <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Paul Mackerras <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Stephane Eranian <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/builtin-script.c')
0 files changed, 0 insertions, 0 deletions