[SCSI] megaraid_sas: Fix the fix for fw hang caused by megaraid sas application
[cascardo/linux.git] / kernel / perf_event.c
index 9d0b5c6..afb7ef3 100644 (file)
@@ -1355,7 +1355,7 @@ static void perf_ctx_adjust_freq(struct perf_event_context *ctx)
        u64 interrupts, freq;
 
        spin_lock(&ctx->lock);
-       list_for_each_entry(event, &ctx->group_list, group_entry) {
+       list_for_each_entry_rcu(event, &ctx->event_list, event_entry) {
                if (event->state != PERF_EVENT_STATE_ACTIVE)
                        continue;