aboutsummaryrefslogtreecommitdiffstats
path: root/tools/misc/xenpm.c
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2008-12-19 14:44:40 +0000
committerKeir Fraser <keir.fraser@citrix.com>2008-12-19 14:44:40 +0000
commit7784d17ecd62bf31eb46d4b44082e71898fd64c7 (patch)
tree6ad57488d0afdc927992dfde2e2370d7bda76e80 /tools/misc/xenpm.c
parent8c13de56874c22fe863eaea97502095805e4cdb6 (diff)
downloadxen-7784d17ecd62bf31eb46d4b44082e71898fd64c7.tar.gz
xen-7784d17ecd62bf31eb46d4b44082e71898fd64c7.tar.bz2
xen-7784d17ecd62bf31eb46d4b44082e71898fd64c7.zip
CPUIDLE: adjust cstate statistic interface
1. change unit of residency, PM ticks -> ns. 2. output C0 usage & residency. Signed-off-by: Wei Gang <gang.wei@intel.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Diffstat (limited to 'tools/misc/xenpm.c')
-rw-r--r--tools/misc/xenpm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/misc/xenpm.c b/tools/misc/xenpm.c
index 348b21d579..c3b19584bc 100644
--- a/tools/misc/xenpm.c
+++ b/tools/misc/xenpm.c
@@ -108,7 +108,7 @@ static int show_cx_cpuid(int xc_fd, int cpuid)
printf("C%d : transition [%020"PRIu64"]\n",
i, cxstat->triggers[i]);
printf(" residency [%020"PRIu64" ms]\n",
- cxstat->residencies[i]*1000000UL/3579/1000000UL);
+ cxstat->residencies[i]/1000000UL);
}
free(cxstat->triggers);