diff options
| author | Junjie Wu <junjiew@codeaurora.org> | 2014-09-17 18:51:41 -0700 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-23 20:03:11 -0700 |
| commit | c7cdf7954ee8a1aec8de42975215d7008f261aff (patch) | |
| tree | f2d633403d22914b000adc24339b9e48becfbccd /include | |
| parent | 50d577eb97ab582697db1bdb937bcfab99dea9ea (diff) | |
cpufreq: interactive: Re-evaluate immediately in load change callback
Previously, there was a limitation in load change callback that it
can't attempt to wake up a task. Therefore the best we can do is to
schedule timer at current jiffy. The timer function will only be
executed at next timer tick. This could take up to 10ms.
Now that this limitation is removed, re-evaluate load immediately upon
receiving this callback.
Change-Id: Iab3de4705b9aae96054655b1541e32fb040f7e60
Signed-off-by: Junjie Wu <junjiew@codeaurora.org>
Diffstat (limited to 'include')
| -rw-r--r-- | include/trace/events/cpufreq_interactive.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/trace/events/cpufreq_interactive.h b/include/trace/events/cpufreq_interactive.h index 951e6ca12da8..e20f65f4353e 100644 --- a/include/trace/events/cpufreq_interactive.h +++ b/include/trace/events/cpufreq_interactive.h @@ -106,6 +106,18 @@ TRACE_EVENT(cpufreq_interactive_unboost, TP_printk("%s", __get_str(s)) ); +TRACE_EVENT(cpufreq_interactive_load_change, + TP_PROTO(unsigned long cpu_id), + TP_ARGS(cpu_id), + TP_STRUCT__entry( + __field(unsigned long, cpu_id) + ), + TP_fast_assign( + __entry->cpu_id = cpu_id; + ), + TP_printk("re-evaluate for cpu=%lu", __entry->cpu_id) +); + #endif /* _TRACE_CPUFREQ_INTERACTIVE_H */ /* This part must be outside protection */ |
