From: Thomas Renninger Date: Sun, 27 Feb 2011 21:36:46 +0000 (+0100) Subject: perf timechart: Fix max number of cpus X-Git-Tag: v2.6.38-rc7~7^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=54b08f5f90feebc9756d96e0c7bf2fdffe4af7c3;p=pandora-kernel.git perf timechart: Fix max number of cpus Currently numcpus is determined in pid_put_sample which is only called on sched_switch/sched_wakeup sample processing. On a machine with a lot cpus I often saw the last cpu missing. Check for (max) numcpus on every event happening and in the beginning. -> fixes the issue for me. Signed-off-by: Thomas Renninger Cc: Arjan van de Ven Cc: Arnaldo Carvalho de Melo Cc: lenb@kernel.org LKML-Reference: <1298842606-55712-6-git-send-email-trenn@suse.de> Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed