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

Commit d9fc2643 authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "perf: Prevent waiting for cpu to come out of idle during read"

parents 8730d430 660536db
Loading
Loading
Loading
Loading
+1 −6
Original line number Original line Diff line number Diff line
@@ -4073,7 +4073,7 @@ static int perf_event_read(struct perf_event *event, bool group)
	 * value in the event structure:
	 * value in the event structure:
	 */
	 */
	preempt_disable();
	preempt_disable();
again:

	if (state == PERF_EVENT_STATE_ACTIVE) {
	if (state == PERF_EVENT_STATE_ACTIVE) {


		/*
		/*
@@ -4126,11 +4126,6 @@ static int perf_event_read(struct perf_event *event, bool group)
		unsigned long flags;
		unsigned long flags;


		raw_spin_lock_irqsave(&ctx->lock, flags);
		raw_spin_lock_irqsave(&ctx->lock, flags);
		if (state != PERF_EVENT_STATE_INACTIVE) {
			raw_spin_unlock_irqrestore(&ctx->lock, flags);
			goto again;
		}

		/*
		/*
		 * May read while context is not active (e.g., thread is
		 * May read while context is not active (e.g., thread is
		 * blocked), in that case we cannot update context time
		 * blocked), in that case we cannot update context time