Commit 1efeb08d7dd32c0fbd4b784ea9303b53d345bfd0
1 parent
7cd2541cf2
perf, ARM: Fix sysfs bits removal build failure
Fix this linux-next build failure that Stephen reported: arch/arm/kernel/perf_event.c: In function 'armpmu_event_init': arch/arm/kernel/perf_event.c:543: error: request for member 'num_events' in something not a structure or union Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: paulus <paulus@samba.org> LKML-Reference: <20101014164925.4fa16b75.sfr@canb.auug.org.au> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
arch/arm/kernel/perf_event.c
... | ... | @@ -534,7 +534,7 @@ |
534 | 534 | event->destroy = hw_perf_event_destroy; |
535 | 535 | |
536 | 536 | if (!atomic_inc_not_zero(&active_events)) { |
537 | - if (atomic_read(&active_events) > armpmu.num_events) { | |
537 | + if (atomic_read(&active_events) > armpmu->num_events) { | |
538 | 538 | atomic_dec(&active_events); |
539 | 539 | return -ENOSPC; |
540 | 540 | } |