diff options
| author | Olav Haugan <ohaugan@codeaurora.org> | 2015-08-10 16:41:44 -0700 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-23 20:02:27 -0700 |
| commit | 03a683a55c450e26f1ebde7400f64a4b7ecd68c2 (patch) | |
| tree | 89d641bf72662652aff71607161baac88b731110 /include | |
| parent | 4996dafe6875f2804d525e6ac74162e3efc4cda3 (diff) | |
sched: Add tunables for static cpu and cluster cost
Add per-cpu tunable to set the extra cost to use a CPU that is idle.
Add the same for a cluster.
Change-Id: I4aa53f3c42c963df7abc7480980f747f0413d389
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
[joonwoop@codeaurora.org: omitted changes for qhmp*.[c,h] stripped out
CONFIG_SCHED_QHMP in drivers/base/cpu.c and include/linux/sched.h]
Signed-off-by: Joonwoo Park <joonwoop@codeaurora.org>
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/sched.h | 4 | ||||
| -rw-r--r-- | include/trace/events/sched.h | 7 |
2 files changed, 9 insertions, 2 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 9e4171146f39..77d3b4c106cd 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -2352,6 +2352,10 @@ extern u32 sched_get_wake_up_idle(struct task_struct *p); extern int sched_set_boost(int enable); extern int sched_set_init_task_load(struct task_struct *p, int init_load_pct); extern u32 sched_get_init_task_load(struct task_struct *p); +extern int sched_set_static_cpu_pwr_cost(int cpu, unsigned int cost); +extern unsigned int sched_get_static_cpu_pwr_cost(int cpu); +extern int sched_set_static_cluster_pwr_cost(int cpu, unsigned int cost); +extern unsigned int sched_get_static_cluster_pwr_cost(int cpu); #else static inline int sched_set_boost(int enable) diff --git a/include/trace/events/sched.h b/include/trace/events/sched.h index 3b10396d61b6..69aede209948 100644 --- a/include/trace/events/sched.h +++ b/include/trace/events/sched.h @@ -171,6 +171,7 @@ TRACE_EVENT(sched_cpu_load, __field(unsigned int, max_freq ) __field(unsigned int, power_cost ) __field( int, cstate ) + __field( int, dstate ) __field( int, temp ) ), @@ -187,14 +188,16 @@ TRACE_EVENT(sched_cpu_load, __entry->max_freq = rq->max_freq; __entry->power_cost = power_cost; __entry->cstate = rq->cstate; + __entry->dstate = rq->dstate; __entry->temp = temp; ), - TP_printk("cpu %u idle %d nr_run %u nr_big %u lsf %u capacity %u cr_avg %llu irqload %llu fcur %u fmax %u power_cost %u cstate %d temp %d", + TP_printk("cpu %u idle %d nr_run %u nr_big %u lsf %u capacity %u cr_avg %llu irqload %llu fcur %u fmax %u power_cost %u cstate %d dstate %d temp %d", __entry->cpu, __entry->idle, __entry->nr_running, __entry->nr_big_tasks, __entry->load_scale_factor, __entry->capacity, __entry->cumulative_runnable_avg, __entry->irqload, __entry->cur_freq, - __entry->max_freq, __entry->power_cost, __entry->cstate, __entry->temp) + __entry->max_freq, __entry->power_cost, __entry->cstate, + __entry->dstate, __entry->temp) ); TRACE_EVENT(sched_set_boost, |
