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

Commit 8736e548 authored by Peter Zijlstra's avatar Peter Zijlstra Committed by Ingo Molnar
Browse files

perf/x86: Simplify the x86_schedule_events() logic



	!x && y == ! (x || !y)

Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Vince Weaver <vincent.weaver@maine.edu>
Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
parent 43ef205b
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -881,9 +881,7 @@ int x86_schedule_events(struct cpu_hw_events *cpuc, int n, int *assign)
			if (x86_pmu.commit_scheduling)
				x86_pmu.commit_scheduling(cpuc, i, assign[i]);
		}
	}

	if (!assign || unsched) {
	} else {
		for (i = 0; i < n; i++) {
			e = cpuc->event_list[i];
			/*