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

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

Merge "cpufreq: schedutil: Add util update tracepoints" into msm-4.9

parents 7bd99c37 12a35edc
Loading
Loading
Loading
Loading
+27 −0
Original line number Diff line number Diff line
@@ -767,6 +767,33 @@ TRACE_EVENT(memlat_dev_update,
		__entry->vote)
);

TRACE_EVENT(sugov_util_update,
	    TP_PROTO(int cpu,
		     unsigned long util, unsigned long max_cap,
		     unsigned long nl, unsigned long pl,
		     unsigned int flags),
	    TP_ARGS(cpu, util, max_cap, nl, pl, flags),
	    TP_STRUCT__entry(
		    __field(	int,		cpu)
		    __field(	unsigned long,	util)
		    __field(	unsigned long,	max_cap)
		    __field(	unsigned long,	nl)
		    __field(	unsigned long,	pl)
		    __field(	unsigned int,	flags)
	    ),
	    TP_fast_assign(
		    __entry->cpu = cpu;
		    __entry->util = util;
		    __entry->max_cap = max_cap;
		    __entry->nl = nl;
		    __entry->pl = pl;
		    __entry->flags = flags;
	    ),
	    TP_printk("cpu=%d util=%lu max_cap=%lu nl=%lu pl=%lu flags=%x",
		      __entry->cpu, __entry->util, __entry->max_cap,
		      __entry->nl, __entry->pl, __entry->flags)
);

#endif /* _TRACE_POWER_H */

/* This part must be outside protection */
+4 −0
Original line number Diff line number Diff line
@@ -294,6 +294,10 @@ static void sugov_update_shared(struct update_util_data *hook, u64 time,
	sugov_set_iowait_boost(sg_cpu, time, flags);
	sg_cpu->last_update = time;

	trace_sugov_util_update(sg_cpu->cpu, sg_cpu->util, max,
				sg_cpu->walt_load.nl,
				sg_cpu->walt_load.pl, flags);

	if (sugov_should_update_freq(sg_policy, time)) {
		next_f = sugov_next_freq_shared(sg_cpu, util, max, flags);
		sugov_update_commit(sg_policy, time, next_f);