aboutsummaryrefslogtreecommitdiff
path: root/net/unix/sysctl_net_unix.c
diff options
context:
space:
mode:
authorMark Rutland <[email protected]>2011-05-17 09:15:38 +0100
committerRussell King <[email protected]>2011-05-20 22:39:17 +0100
commit57ce9bb39b476accf8fba6e16aea67ed76ea523d (patch)
tree8fb318ab6ffe5b05b691e452d85469ff7a187e04 /net/unix/sysctl_net_unix.c
parent31bee4cf0e74e9c962d481a68452debaf45ed4ac (diff)
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 <[email protected]> Acked-by: Will Deacon <[email protected]> Cc: Jamie Iles <[email protected]> Signed-off-by: Russell King <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions