diff options
author | Peter Zijlstra <a.p.zijlstra@chello.nl> | 2009-05-20 06:21:19 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-05-20 06:43:32 -0400 |
commit | d7b629a34fc4134a43c730b5f0197855dc4948d0 (patch) | |
tree | 040157a5fa338216644f6866e20b3994bd4eaf01 /include | |
parent | c44d70a340554a33071339064a303ac0f1a31623 (diff) |
perf_counter: Solve the rotate_ctx vs inherit race differently
Instead of disabling RR scheduling of the counters, use a different list
that does not get rotated to iterate the counters on inheritance.
[ Impact: cleanup, optimization ]
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Marcelo Tosatti <mtosatti@redhat.com>
Cc: John Kacur <jkacur@redhat.com>
LKML-Reference: <20090520102553.237504544@chello.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/perf_counter.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/perf_counter.h b/include/linux/perf_counter.h index 13cb2fbbf334..c8c1dfc22c93 100644 --- a/include/linux/perf_counter.h +++ b/include/linux/perf_counter.h | |||
@@ -508,7 +508,6 @@ struct perf_counter_context { | |||
508 | int nr_counters; | 508 | int nr_counters; |
509 | int nr_active; | 509 | int nr_active; |
510 | int is_active; | 510 | int is_active; |
511 | int rr_allowed; | ||
512 | struct task_struct *task; | 511 | struct task_struct *task; |
513 | 512 | ||
514 | /* | 513 | /* |