diff options
| author | Srivatsa Vaddagiri <vatsa@codeaurora.org> | 2014-07-29 23:40:28 -0700 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-23 20:00:12 -0700 |
| commit | 900b44b621d0956d410319537bc5c0552a4e28f2 (patch) | |
| tree | cc4f640bc1dcd0144d454273be1b3e3731c4e469 /include/linux | |
| parent | b9f8d63c0804a92b9991a693fd294a862b13318c (diff) | |
sched: window-stats: Account wait time
Extend window-based task load accounting mechanism to include
wait-time as part of task demand. A subsequent patch will make this
feature configurable at runtime.
Change-Id: I8e79337c30a19921d5c5527a79ac0133b385f8a9
Signed-off-by: Srivatsa Vaddagiri <vatsa@codeaurora.org>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/sched.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index c53c9e2e4963..24c6bc818c2e 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -1275,9 +1275,12 @@ struct ravg { * 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; + u32 sum, demand, prev_window, partial_demand, flags; u32 sum_history[RAVG_HIST_SIZE]; }; |
