diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-09-11 10:12:54 (GMT) |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-09-13 08:22:50 (GMT) |
commit | b5fae128e41021889777f8ead810cbd2a8b249fc (patch) | |
tree | 4fb7885dc9d9232c6c8fb4f45b95dfedcdbac175 /tools/perf/util | |
parent | b1ffe8f3e0c96f5527a89e24410d6b0e59b3554a (diff) | |
download | linux-fsl-qoriq-b5fae128e41021889777f8ead810cbd2a8b249fc.tar.xz |
perf sched: Clean up PID sorting logic
Use a sort list for thread atoms insertion as well - instead of
hardcoded for PID.
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf/util')
-rw-r--r-- | tools/perf/util/thread.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/perf/util/thread.h b/tools/perf/util/thread.h index 634f280..665d1f3 100644 --- a/tools/perf/util/thread.h +++ b/tools/perf/util/thread.h @@ -4,10 +4,10 @@ #include "symbol.h" struct thread { - struct rb_node rb_node; - struct list_head maps; - pid_t pid; - char *comm; + struct rb_node rb_node; + struct list_head maps; + pid_t pid; + char *comm; }; int thread__set_comm(struct thread *self, const char *comm); |