Mark Rutland 57ce9bb39b ARM: 6902/1: perf: Remove erroneous check on active_events
When initialising a PMU, there is a check to protect against races with
other CPUs filling all of the available event slots. Since armpmu_add
checks that an event can be scheduled, we do not need to do this at
initialisation time. Furthermore the current code is broken because it
assumes that atomic_inc_not_zero will unconditionally increment
active_counts and then tries to decrement it again on failure.

This patch removes the broken, redundant code.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Acked-by: Will Deacon <will.deacon@arm.com>
Cc: Jamie Iles <jamie@jamieiles.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
2011-05-20 22:39:17 +01:00
..
2008-08-12 19:54:09 +01:00
2011-03-16 23:35:27 +00:00
2008-05-30 10:33:49 +02:00
2011-04-15 13:26:40 +01:00
2011-03-29 14:47:58 +02:00
2011-01-06 22:32:03 +00:00
2011-03-16 23:35:27 +00:00
2008-09-06 12:10:45 +01:00
2011-03-29 14:47:57 +02:00
2010-12-20 23:07:36 +08:00
2010-10-29 13:14:40 -05:00
2011-03-16 23:35:27 +00:00
2010-12-20 23:07:36 +08:00
2011-03-16 23:35:25 +00:00
2011-01-15 09:27:04 +00:00
2011-03-31 11:26:23 -03:00