From: Mark Rutland Date: Tue, 17 May 2011 08:15:38 +0000 (+0100) Subject: ARM: 6902/1: perf: Remove erroneous check on active_events X-Git-Tag: v3.0-rc1~328^2~1^3~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=57ce9bb39b476accf8fba6e16aea67ed76ea523d;p=pandora-kernel.git 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 Acked-by: Will Deacon Cc: Jamie Iles Signed-off-by: Russell King --- Reading git-diff-tree failed