From: Viresh Kumar Date: Fri, 28 Mar 2014 13:41:45 +0000 (+0530) Subject: cpufreq: don't print value of .driver_data from core X-Git-Tag: submit/tizen/20141203.153721~231^2~3^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ae87f10f35f75deb8f74dbd92d062200932c2f26;p=platform%2Fkernel%2Flinux-arm64.git cpufreq: don't print value of .driver_data from core CPUFreq core doesn't control value of .driver_data and this field is completely driver specific. This can contain any value and not only indexes. For most of the drivers, which aren't using this field, its value is zero. So, printing this from core doesn't make any sense. Don't print it. Signed-off-by: Viresh Kumar Signed-off-by: Rafael J. Wysocki --- diff --git a/drivers/cpufreq/freq_table.c b/drivers/cpufreq/freq_table.c index 65a477075b3..53ff3c20960 100644 --- a/drivers/cpufreq/freq_table.c +++ b/drivers/cpufreq/freq_table.c @@ -36,8 +36,7 @@ int cpufreq_frequency_table_cpuinfo(struct cpufreq_policy *policy, && table[i].driver_data == CPUFREQ_BOOST_FREQ) continue; - pr_debug("table entry %u: %u kHz, %u driver_data\n", - i, freq, table[i].driver_data); + pr_debug("table entry %u: %u kHz\n", i, freq); if (freq < min_freq) min_freq = freq; if (freq > max_freq) @@ -175,8 +174,8 @@ int cpufreq_frequency_table_target(struct cpufreq_policy *policy, } else *index = optimal.driver_data; - pr_debug("target is %u (%u kHz, %u)\n", *index, table[*index].frequency, - table[*index].driver_data); + pr_debug("target index is %u, freq is:%u kHz\n", *index, + table[*index].frequency); return 0; }