Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 550c9fb0 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "perf: don't zombie certain events in perf_event_release_kernel"

parents b81390b1 29c70055
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4286,7 +4286,7 @@ int perf_event_release_kernel(struct perf_event *event)
	 *  back online.
	 */
#if defined CONFIG_HOTPLUG_CPU || defined CONFIG_KEXEC_CORE
	if (!cpu_online(event->cpu)) {
	if (event->cpu != -1 && !cpu_online(event->cpu)) {
		if (event->state == PERF_EVENT_STATE_ZOMBIE)
			return 0;