Unverified Commit 763a91b9 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!14892 s390/cpum_sf: Handle CPU hotplug remove during sampling

parents d7442120 52b12b13
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1922,6 +1922,8 @@ static void cpumsf_pmu_stop(struct perf_event *event, int flags)
	event->hw.state |= PERF_HES_STOPPED;

	if ((flags & PERF_EF_UPDATE) && !(event->hw.state & PERF_HES_UPTODATE)) {
		/* CPU hotplug off removes SDBs. No samples to extract. */
		if (cpuhw->flags & PMU_F_RESERVED)
			hw_perf_event_update(event, 1);
		event->hw.state |= PERF_HES_UPTODATE;
	}