Mailing List Archive

[xen-unstable] xenpm: remove wrong and pointless "current" indicator
# HG changeset patch
# User Keir Fraser <keir.fraser@citrix.com>
# Date 1273222217 -3600
# Node ID 3b7228548a64428d07245e59fcb5a8205abc0798
# Parent e1db99bab3ce4b0bba0086ae9988c00771d78dad
xenpm: remove wrong and pointless "current" indicator

Using the CPU number to compare with an index into an array containing
only a subset of CPUs isn't valid. And indicator isn't necessary here
at all since the CPU number being dealt with gets printed right before
this line.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
---
tools/misc/xenpm.c | 5 +----
1 files changed, 1 insertion(+), 4 deletions(-)

diff -r e1db99bab3ce -r 3b7228548a64 tools/misc/xenpm.c
--- a/tools/misc/xenpm.c Fri May 07 09:46:50 2010 +0100
+++ b/tools/misc/xenpm.c Fri May 07 09:50:17 2010 +0100
@@ -499,10 +499,7 @@ static void print_cpufreq_para(int cpuid

printf("affected_cpus :");
for ( i = 0; i < p_cpufreq->cpu_num; i++ )
- if ( i == cpuid )
- printf(" *%d", p_cpufreq->affected_cpus[i]);
- else
- printf(" %d", p_cpufreq->affected_cpus[i]);
+ printf(" %d", p_cpufreq->affected_cpus[i]);
printf("\n");

printf("cpuinfo frequency : max [%u] min [%u] cur [%u]\n",

_______________________________________________
Xen-changelog mailing list
Xen-changelog@lists.xensource.com
http://lists.xensource.com/xen-changelog