[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] xenpm: remove wrong and pointless "current" indicator



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# 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@xxxxxxxxxx>
---
 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@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.