Message ID | 1287066841-28569-1-git-send-email-gadiyar@ti.com (mailing list archive) |
---|---|
State | Awaiting Upstream, archived |
Headers | show |
Index: mainline/arch/arm/kernel/perf_event.c =================================================================== --- mainline.orig/arch/arm/kernel/perf_event.c +++ mainline/arch/arm/kernel/perf_event.c @@ -540,7 +540,7 @@ static int armpmu_event_init(struct perf event->destroy = hw_perf_event_destroy; if (!atomic_inc_not_zero(&active_events)) { - if (atomic_read(&active_events) > armpmu.num_events) { + if (atomic_read(&active_events) > armpmu->num_events) { atomic_dec(&active_events); return -ENOSPC; }