Unverified Commit a79f967c authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files
parents c791a369 7a26d944
Loading
Loading
Loading
Loading
+35 −33
Original line number Original line Diff line number Diff line
@@ -12371,6 +12371,7 @@ void perf_pmu_migrate_context(struct pmu *pmu, int src_cpu, int dst_cpu)
		list_add(&event->migrate_entry, &events);
		list_add(&event->migrate_entry, &events);
	}
	}


	if (!list_empty(&events)) {
		/*
		/*
		 * Wait for the events to quiesce before re-instating them.
		 * Wait for the events to quiesce before re-instating them.
		 */
		 */
@@ -12408,6 +12409,7 @@ void perf_pmu_migrate_context(struct pmu *pmu, int src_cpu, int dst_cpu)
			perf_install_in_context(dst_ctx, event, dst_cpu);
			perf_install_in_context(dst_ctx, event, dst_cpu);
			get_ctx(dst_ctx);
			get_ctx(dst_ctx);
		}
		}
	}
	mutex_unlock(&dst_ctx->mutex);
	mutex_unlock(&dst_ctx->mutex);
	mutex_unlock(&src_ctx->mutex);
	mutex_unlock(&src_ctx->mutex);
}
}