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
..
2011-05-07 08:34:40 +01:00
2011-04-13 23:32:13 +01:00
2011-03-24 09:33:14 -07:00
2011-05-12 10:52:00 +01:00
2011-05-20 22:39:17 +01:00
2011-03-20 09:32:12 +00:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-03-29 14:47:58 +02:00
2011-02-17 23:26:55 +00:00
2011-05-02 12:17:05 -07:00
2011-03-29 14:47:58 +02:00
2011-03-29 14:47:58 +02:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-03-29 14:47:58 +02:00
2011-03-29 14:47:58 +02:00
2011-03-29 14:47:58 +02:00
2011-03-28 18:52:44 +01:00
2011-03-20 09:32:12 +00:00
2011-03-31 11:26:23 -03:00
2011-03-29 14:47:58 +02:00
2011-03-29 14:47:58 +02:00
2011-03-29 14:47:58 +02:00
2011-03-29 14:47:58 +02:00
2011-03-29 14:47:58 +02:00
2011-03-31 11:26:23 -03:00
2011-03-29 14:47:58 +02:00
2011-03-17 19:08:06 -07:00
2011-03-31 11:26:23 -03:00
2011-04-12 23:26:39 +08:00
2011-04-18 15:44:29 -07:00
2011-03-29 14:47:57 +02:00
2011-04-12 09:47:55 +02:00
2011-04-18 19:51:14 +02:00
2011-03-07 19:29:28 +01:00
2011-04-12 09:48:02 +02:00
2011-03-29 14:47:58 +02:00
2011-02-17 23:26:55 +00:00
2011-03-29 14:47:58 +02:00
2011-03-29 14:47:58 +02:00
2011-03-31 11:26:23 -03:00
2011-04-27 06:15:27 -07:00
2011-03-31 11:26:23 -03:00
2011-03-29 14:47:57 +02:00
2011-04-25 12:43:47 +08:00
2011-05-12 10:52:00 +01:00
2011-03-29 14:47:58 +02:00
2011-02-17 23:26:55 +00:00
2011-03-31 11:26:23 -03:00
2011-02-17 23:26:55 +00:00
2011-03-31 11:26:23 -03:00
2011-03-29 14:47:58 +02:00
2011-03-29 14:47:58 +02:00
2011-04-18 17:12:14 +01:00
2011-03-29 14:47:58 +02:00
2011-03-28 16:17:53 +09:00
2011-03-16 23:35:27 +00:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-03-29 14:47:58 +02:00
2011-04-06 11:21:38 -07:00
2011-03-09 09:50:04 +00:00
2011-03-09 09:50:04 +00:00
2011-01-13 17:19:02 +01:00
2011-01-13 17:19:01 +01:00
2011-03-29 14:47:57 +02:00
2011-05-12 10:52:00 +01:00
2011-03-31 11:26:23 -03:00
2011-04-20 18:43:53 +02:00
2011-03-30 12:02:15 +02:00
2011-03-20 09:32:21 +00:00
2011-03-29 14:47:58 +02:00
2011-03-29 14:47:58 +02:00
2011-05-20 22:39:17 +01:00
2011-02-15 10:18:48 -08:00
2011-01-05 18:09:03 +00:00
2011-04-27 08:43:01 +01:00
2011-03-29 14:47:58 +02:00
2011-03-31 11:26:23 -03:00
2011-03-29 14:47:58 +02:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-04-14 13:19:40 +09:00
2011-04-14 13:20:05 +09:00
2011-03-31 11:26:23 -03:00
2011-03-29 14:47:58 +02:00
2011-02-17 23:26:55 +00:00
2011-03-29 14:47:58 +02:00
2011-03-20 18:07:44 +00:00
2011-04-10 21:13:37 +01:00
2011-05-16 11:57:44 +01:00
2011-03-31 11:26:23 -03:00
2011-04-14 09:15:24 +01:00
2011-03-17 19:08:06 -07:00