summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSrivatsa Vaddagiri <vatsa@codeaurora.org>2014-08-08 18:05:06 +0530
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 20:00:22 -0700
commit9425ce430926fd213d5f65a46d724db54b7b1c0f (patch)
tree7e72c27d2dd34629bacfe98c660e3c609fe9afb4 /include
parent6ed9cab72392f77fab1a533153e9aa9bb857ed7a (diff)
sched: window-stats: Remove unused prev_window variable
Remove unused prev_window variable in 'struct ravg' Change-Id: I22ec040bae6fa5810f9f8771aa1cb873a2183746 Signed-off-by: Srivatsa Vaddagiri <vatsa@codeaurora.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/sched.h7
-rw-r--r--include/trace/events/sched.h6
2 files changed, 3 insertions, 10 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h
index f582c99d624f..62bf15ff160d 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -1273,16 +1273,11 @@ struct ravg {
* sysctl_sched_ravg_hist_size windows. 'demand' could drive frequency
* demand for tasks.
*
- * 'prev_window' is the history in the most recent window. This value
- * may be zero if there was no task activity in that window - that is
- * how this quantity differs from the most recent sample in
- * sum_history (empty windows are ignored in sum_history).
- *
* 'flags' can have either or both of PREV_WINDOW_CONTRIB and
* CURR_WINDOW_CONTRIB set.
*/
u64 mark_start;
- u32 sum, demand, prev_window, partial_demand, flags;
+ u32 sum, demand, partial_demand, flags;
u32 sum_history[RAVG_HIST_SIZE_MAX];
};
diff --git a/include/trace/events/sched.h b/include/trace/events/sched.h
index dc89c38010ae..ee42b306ba32 100644
--- a/include/trace/events/sched.h
+++ b/include/trace/events/sched.h
@@ -236,7 +236,6 @@ TRACE_EVENT(sched_update_task_ravg,
__field(unsigned int, demand )
__field(unsigned int, partial_demand )
__field(unsigned int, sum )
- __field(unsigned int, prev_window )
__field( int, cpu )
),
@@ -257,16 +256,15 @@ TRACE_EVENT(sched_update_task_ravg,
__entry->demand = p->ravg.demand;
__entry->partial_demand = p->ravg.partial_demand;
__entry->sum = p->ravg.sum;
- __entry->prev_window = p->ravg.prev_window;
),
- TP_printk("wc %llu ws %llu delta %llu event %s cpu %d cur_freq %u cs %u ps %u cur_pid %d task %d (%s) ms %llu delta %llu demand %u partial_demand %u sum %u prev_window %u",
+ TP_printk("wc %llu ws %llu delta %llu event %s cpu %d cur_freq %u cs %u ps %u cur_pid %d task %d (%s) ms %llu delta %llu demand %u partial_demand %u sum %u",
__entry->wallclock, __entry->win_start, __entry->delta,
task_event_names[__entry->evt], __entry->cpu,
__entry->cur_freq, __entry->cs, __entry->ps, __entry->cur_pid,
__entry->pid, __entry->comm, __entry->mark_start,
__entry->delta_m, __entry->demand, __entry->partial_demand,
- __entry->sum, __entry->prev_window)
+ __entry->sum)
);
TRACE_EVENT(sched_update_history,