summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9614ef2)
raw | patch | inline | side by side (parent: 9614ef2)
author | Vincent Brillault <git@lerya.net> | |
Sat, 23 Aug 2014 15:34:52 +0000 (17:34 +0200) | ||
committer | Vincent Brillault <git@lerya.net> | |
Sat, 28 Feb 2015 06:35:41 +0000 (07:35 +0100) |
setup_all_buffers can be called after a free_all_buffers, which would
remove the tcc_activation_temp
remove the tcc_activation_temp
src/turbostat.c | patch | blob | history |
diff --git a/src/turbostat.c b/src/turbostat.c
index 55d1179b782608e73313b88d37145f21a3b173bc..41b95e2d9e96c81717ec3ab0193cf33adb154637 100644 (file)
--- a/src/turbostat.c
+++ b/src/turbostat.c
DO_OR_GOTO_ERR(allocate_counters(&thread_odd, &core_odd, &package_odd));
DO_OR_GOTO_ERR(allocate_counters(&thread_delta, &core_delta, &package_delta));
DO_OR_GOTO_ERR(for_all_proc_cpus(initialize_counters));
+ DO_OR_GOTO_ERR(for_all_cpus(set_temperature_target, EVEN_COUNTERS));
+ DO_OR_GOTO_ERR(for_all_cpus(set_temperature_target, ODD_COUNTERS));
allocated = 1;
return 0;
DO_OR_GOTO_ERR(probe_cpu());
DO_OR_GOTO_ERR(check_dev_msr());
DO_OR_GOTO_ERR(setup_all_buffers());
- DO_OR_GOTO_ERR(for_all_cpus(set_temperature_target, EVEN_COUNTERS));
- DO_OR_GOTO_ERR(for_all_cpus(set_temperature_target, ODD_COUNTERS));
plugin_register_complex_read(NULL, PLUGIN_NAME, turbostat_read, NULL, NULL);