diff options
| author | Junjie Wu <junjiew@codeaurora.org> | 2015-09-14 17:16:17 -0700 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-23 20:03:31 -0700 |
| commit | b4f3244b37352acabc32b7bab4f2efec94bf9d53 (patch) | |
| tree | 442fe5a22d321e256f644500d77e1c2ad8321639 /include | |
| parent | ce83f7661b34dec586c5cf024599ead9d1bc379c (diff) | |
cpufreq: interactive: Ramp up to policy->max for heavy new task
New tasks don't have sufficient history to predict its behavior, even
with scheduler's help. Ramping up conservatively for a heavy task
could hurt performance when it's needed. Therefore, separate out new
tasks' load with scheduler's help and ramp up more aggressively if new
tasks make up a significant portion of total load.
Change-Id: Ia95c956369edb9b7a0768f3bdcb0b2fab367fdf7
Suggested-by: Saravana Kannan <skannan@codeaurora.org>
Signed-off-by: Junjie Wu <junjiew@codeaurora.org>
Diffstat (limited to 'include')
| -rw-r--r-- | include/trace/events/cpufreq_interactive.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/include/trace/events/cpufreq_interactive.h b/include/trace/events/cpufreq_interactive.h index 3a7f050f436a..e1c7ec521ea8 100644 --- a/include/trace/events/cpufreq_interactive.h +++ b/include/trace/events/cpufreq_interactive.h @@ -119,17 +119,21 @@ TRACE_EVENT(cpufreq_interactive_load_change, ); TRACE_EVENT(cpufreq_interactive_cpuload, - TP_PROTO(unsigned long cpu_id, unsigned long load), - TP_ARGS(cpu_id, load), + TP_PROTO(unsigned long cpu_id, unsigned long load, + unsigned int new_task_pct), + TP_ARGS(cpu_id, load, new_task_pct), TP_STRUCT__entry( __field(unsigned long, cpu_id) __field(unsigned long, load) + __field(unsigned long, new_task_pct) ), TP_fast_assign( __entry->cpu_id = cpu_id; __entry->load = load; + __entry->new_task_pct = new_task_pct; ), - TP_printk("cpu=%lu load=%lu", __entry->cpu_id, __entry->load) + TP_printk("cpu=%lu load=%lu new_task_pct=%lu", __entry->cpu_id, + __entry->load, __entry->new_task_pct) ); #endif /* _TRACE_CPUFREQ_INTERACTIVE_H */ |
