aboutsummaryrefslogtreecommitdiff
path: root/idlestat.c
diff options
context:
space:
mode:
authorLarry Bassel <larry.bassel@linaro.org>2014-10-08 12:02:04 -0700
committerTuukka Tikkanen <tuukka.tikkanen@linaro.org>2014-10-24 01:20:30 +0300
commit2b978a2210d7edf2b23cb9e7ce5df22ef31f6fb6 (patch)
treea4489bf60f157282cfd4f4bc83827fe26247edd7 /idlestat.c
parent49ce019581859c015787a6a781a43c41694f9b36 (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.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/idlestat.c b/idlestat.c
index 5f0777e..58981a5 100644
--- a/idlestat.c
+++ b/idlestat.c
@@ -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();