diff options
author | Larry Bassel <larry.bassel@linaro.org> | 2014-10-08 12:02:04 -0700 |
---|---|---|
committer | Tuukka Tikkanen <tuukka.tikkanen@linaro.org> | 2014-10-24 01:20:30 +0300 |
commit | 2b978a2210d7edf2b23cb9e7ce5df22ef31f6fb6 (patch) | |
tree | a4489bf60f157282cfd4f4bc83827fe26247edd7 /idlestat.c | |
parent | 49ce019581859c015787a6a781a43c41694f9b36 (diff) |
idlestat: calculate energy consumption using energy model
Calculate estimated energy consumption using the specified
energy model file.
Signed-off-by: Larry Bassel <larry.bassel@linaro.org>
Reviewed-by: Tuukka Tikkanen <tuukka.tikkanen@linaro.org>
Diffstat (limited to 'idlestat.c')
-rw-r--r-- | idlestat.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -1604,6 +1604,9 @@ int main(int argc, char *argv[], char *const envp[]) dump_cpu_topo_info(display_wakeup, 1); display_wakeup_footer(); } + + if (options.energy_model_filename) + calculate_energy_consumption(); } release_cpu_topo_cstates(); |