aboutsummaryrefslogtreecommitdiff
path: root/cpu
diff options
context:
space:
mode:
authorArjan van de Ven <arjan@linux.intel.com>2010-08-12 15:13:32 -0400
committerArjan van de Ven <arjan@linux.intel.com>2010-08-12 15:13:32 -0400
commitf2778e2b7074795128eaf72fea9239cd02917553 (patch)
treeca52983f50b9885c017c2986cfcbe0ec75527459 /cpu
parent8a97d45902a5572e757a10462e5b00676b7af30e (diff)
downloadpowertop-f2778e2b7074795128eaf72fea9239cd02917553.tar.gz
add cpu numbers back
Diffstat (limited to 'cpu')
-rw-r--r--cpu/intel_cpus.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/cpu/intel_cpus.cpp b/cpu/intel_cpus.cpp
index 265cbef..ee379ff 100644
--- a/cpu/intel_cpus.cpp
+++ b/cpu/intel_cpus.cpp
@@ -517,6 +517,11 @@ char * nhm_cpu::fill_pstate_line(int line_nr, char *buffer)
total_stamp = 1;
}
+ if (line_nr == LEVEL_HEADER) {
+ sprintf(buffer," CPU %i", number);
+ return buffer;
+ }
+
if (line_nr == LEVEL_C0) {
double F;
F = 1.0 * (tsc_after - tsc_before) * (aperf_after - aperf_before) / (mperf_after - mperf_before) / time_factor * 1000;