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

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

Merge "sched: cpufreq: Use per_cpu_ptr instead of this_cpu_ptr when reporting load" into msm-4.9

parents b76d5171 bab41885
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2213,7 +2213,8 @@ static inline void cpufreq_update_util(struct rq *rq, unsigned int flags)
	rq->load_reported_window = rq->window_start;
#endif

	data = rcu_dereference_sched(*this_cpu_ptr(&cpufreq_update_util_data));
	data = rcu_dereference_sched(*per_cpu_ptr(&cpufreq_update_util_data,
					cpu_of(rq)));
	if (data)
		data->func(data, sched_clock(), flags);
}