From b4f3244b37352acabc32b7bab4f2efec94bf9d53 Mon Sep 17 00:00:00 2001 From: Junjie Wu Date: Mon, 14 Sep 2015 17:16:17 -0700 Subject: 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 Signed-off-by: Junjie Wu --- include/trace/events/cpufreq_interactive.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'include/trace') 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 */ -- cgit v1.2.3