Skip to contentSkip to conversation

xenpm: remove wrong and pointless "current" indicator

PATCH New Jan Beulich 1 participant 1 message May 7, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xenpm: remove wrong and pointless "current" indicator

Using the CPU number to compare with an index into an array containing only a seubset 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.

tools/misc/xenpm.c +1 -4
@@ -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",

Using the CPU number to compare with an index into an array containing only a seubset 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.

tools/misc/xenpm.c +1 -4
@@ -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-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel