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

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

Merge "PM / devfreq: arm-memlat-mon: Delete event count overflow handling code"

parents e44caf86 62e41b44
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -97,13 +97,8 @@ static inline unsigned long read_event(struct event_data *event)
	u64 total, enabled, running;

	total = perf_event_read_value(event->pevent, &enabled, &running);
	if (total >= event->prev_count)
	ev_count = total - event->prev_count;
	else
		ev_count = (MAX_COUNT_LIM - event->prev_count) + total;

	event->prev_count = total;

	return ev_count;
}