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

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

parents 938bb38a 31ee40d0
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1900,6 +1900,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;
	}