xenpm: remove wrong and pointless "current" indicator
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.
Signed-off-by Jan Beulich <[email protected]>
tools/misc/xenpm.c +1 -4
@@ -499,10 +499,7 @@ static void print_cpufreq_para(int cpuidprintf ("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.
Signed-off-by Jan Beulich <[email protected]>
tools/misc/xenpm.c +1 -4
@@ -499,10 +499,7 @@ static void print_cpufreq_para(int cpuidprintf ("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