perf: llcc: Preserve events across CPU hotplugs

By default, the perf core detaches the event from the PMU when it's
associated CPU hotplugs out. Set flag "events_across_hotplug" to
preserve the events created for LLCC PMU to be preserved across
hotplugs.

Change-Id: Ia4bd4962370dd18fcd4b221905186faadc618ce0
Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
Signed-off-by: Rama Aparna Mallavarapu <aparnam@codeaurora.org>
This commit is contained in:
Rama Aparna Mallavarapu
2019-01-16 21:26:31 -08:00
parent 5c7966cfdd
commit d0efeea737

View File

@@ -149,6 +149,7 @@ static int qcom_llcc_pmu_probe(struct platform_device *pdev)
.start = qcom_llcc_event_start,
.stop = qcom_llcc_event_stop,
.read = qcom_llcc_event_read,
.events_across_hotplug = 1,
};
res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "lagg-base");