aboutsummaryrefslogtreecommitdiff
path: root/cpu
diff options
context:
space:
mode:
authorArjan van de Ven <arjan@linux.intel.com>2010-08-13 11:53:52 -0400
committerArjan van de Ven <arjan@linux.intel.com>2010-08-13 11:53:52 -0400
commit3183effbf73d5321494c0281c664c558ce0c9e89 (patch)
tree68afbe7f8f435da1df478152a0c5bb2f5f7bb7ab /cpu
parent2202e23f3b4974248f535dfb37be50e14b239dca (diff)
downloadpowertop-3183effbf73d5321494c0281c664c558ce0c9e89.tar.gz
remove a bunch of debug printf's without destroying the now working system
Diffstat (limited to 'cpu')
-rw-r--r--cpu/abstract_cpu.cpp2
-rw-r--r--cpu/cpu.cpp13
2 files changed, 10 insertions, 5 deletions
diff --git a/cpu/abstract_cpu.cpp b/cpu/abstract_cpu.cpp
index d92d7ab..1128b51 100644
--- a/cpu/abstract_cpu.cpp
+++ b/cpu/abstract_cpu.cpp
@@ -373,8 +373,6 @@ void abstract_cpu::reset_pstate_data(void)
my_time = total_pstate_time();
- printf("reset\n");
-
for (i = 0; i < pstates.size(); i++) {
pstates[i]->time_before = 0;
pstates[i]->time_after = 0;
diff --git a/cpu/cpu.cpp b/cpu/cpu.cpp
index 9e35a9c..46805eb 100644
--- a/cpu/cpu.cpp
+++ b/cpu/cpu.cpp
@@ -412,7 +412,6 @@ void perf_power_bundle::handle_trace_point(int type, void *trace, int cpunr, uin
{
const char *event_name;
class abstract_cpu *cpu;
- unsigned int i;
if (type >= (int)event_names.size())
return;
@@ -425,11 +424,12 @@ void perf_power_bundle::handle_trace_point(int type, void *trace, int cpunr, uin
cpu = all_cpus[cpunr];
+#if 0
printf("Time is %llu \n", time);
for (i = 0; i < system_level.children.size(); i++)
if (system_level.children[i])
system_level.children[i]->validate();
-
+#endif
if (strcmp(event_name, "power:power_frequency")==0) {
struct power_entry *pe = (struct power_entry *)trace;
@@ -440,15 +440,22 @@ void perf_power_bundle::handle_trace_point(int type, void *trace, int cpunr, uin
if (strcmp(event_name, "power:power_end")==0)
cpu->go_unidle(time);
+#if 0
+ unsigned int i;
for (i = 0; i < system_level.children.size(); i++)
if (system_level.children[i])
system_level.children[i]->validate();
-
+#endif
}
void process_cpu_data(void)
{
+ unsigned int i;
system_level.reset_pstate_data();
perf_events->process();
+
+ for (i = 0; i < system_level.children.size(); i++)
+ if (system_level.children[i])
+ system_level.children[i]->validate();
} \ No newline at end of file