diff options
author | Arjan van de Ven <arjan@linux.intel.com> | 2010-08-13 12:27:23 -0400 |
---|---|---|
committer | Arjan van de Ven <arjan@linux.intel.com> | 2010-08-13 12:27:23 -0400 |
commit | d4275597dccb805507bb405ceeef343febf38d68 (patch) | |
tree | 511ffbc4fa2bc964122b987bef71ded3222e462e /cpu | |
parent | 3183effbf73d5321494c0281c664c558ce0c9e89 (diff) | |
download | powertop-d4275597dccb805507bb405ceeef343febf38d68.tar.gz |
zero C state stuff too
Diffstat (limited to 'cpu')
-rw-r--r-- | cpu/abstract_cpu.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cpu/abstract_cpu.cpp b/cpu/abstract_cpu.cpp index 1128b51..9b09185 100644 --- a/cpu/abstract_cpu.cpp +++ b/cpu/abstract_cpu.cpp @@ -377,6 +377,12 @@ void abstract_cpu::reset_pstate_data(void) pstates[i]->time_before = 0; pstates[i]->time_after = 0; } + for (i = 0; i < cstates.size(); i++) { + cstates[i]->duration_before = 0; + cstates[i]->duration_after = 0; + cstates[i]->before_count = 0; + cstates[i]->after_count = 0; + } for (i = 0; i < children.size(); i++) if (children[i]) |