From patchwork Thu Mar 27 10:07:22 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 27180 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f71.google.com (mail-oa0-f71.google.com [209.85.219.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id DAFDD202FA for ; Thu, 27 Mar 2014 10:08:06 +0000 (UTC) Received: by mail-oa0-f71.google.com with SMTP id j17sf12146908oag.2 for ; Thu, 27 Mar 2014 03:08:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=iMC4NsVSkEU3pMOBgQ8xdJ+8ujEVjTg2zXVtPppmKy4=; b=NBh3hK8WjWEklv9svU2jh0PAI8FcJFsNmjdOKNemL0xUwG16Jyu5DsQ5hTcEGwZC0m BKKCTjFgZsCC56uHHX6PxEqIwT/X8bpeekfnciUhcEYI+W9vzWrMpXL/8BbNh6DcuMGV n88wR1mCnJ4yyhZHciwyIqlJu9R6nm8QSrzfmu9cjdDBl/a0o2Jcv4uFTKYH3hxkBdmK QkystKlNW81UX5K1TD4WmFh9L7Y5UmDoKnDmBxx2uqgYodeNcW69Pa4vWhQ0bw67I90v SytED12euJxqH7RHs1ONOOW0zk8uGPXIuXNFiG5X9kcpnileyAp8N4qCpsU+yxWjrybk W1QA== X-Gm-Message-State: ALoCoQnQT+ln8fcxLhyODFlW5u1/2gQmNxc5d06v4owQCA7o/MiF5JCq94DLngccU3y+g8d1GPXM X-Received: by 10.42.85.142 with SMTP id q14mr320732icl.11.1395914886416; Thu, 27 Mar 2014 03:08:06 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.96.79 with SMTP id j73ls297872qge.45.gmail; Thu, 27 Mar 2014 03:08:06 -0700 (PDT) X-Received: by 10.221.74.65 with SMTP id yv1mr9080vcb.31.1395914886331; Thu, 27 Mar 2014 03:08:06 -0700 (PDT) Received: from mail-vc0-f178.google.com (mail-vc0-f178.google.com [209.85.220.178]) by mx.google.com with ESMTPS id z14si321090vcf.100.2014.03.27.03.08.06 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 27 Mar 2014 03:08:06 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.178 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.178; Received: by mail-vc0-f178.google.com with SMTP id im17so3993248vcb.9 for ; Thu, 27 Mar 2014 03:08:06 -0700 (PDT) X-Received: by 10.58.23.6 with SMTP id i6mr616133vef.12.1395914886227; Thu, 27 Mar 2014 03:08:06 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.78.9 with SMTP id i9csp15026vck; Thu, 27 Mar 2014 03:08:05 -0700 (PDT) X-Received: by 10.68.236.100 with SMTP id ut4mr859366pbc.29.1395914885446; Thu, 27 Mar 2014 03:08:05 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id wt1si1163270pbc.161.2014.03.27.03.08.04; Thu, 27 Mar 2014 03:08:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of cpufreq-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754215AbaC0KID (ORCPT + 6 others); Thu, 27 Mar 2014 06:08:03 -0400 Received: from mail-wg0-f45.google.com ([74.125.82.45]:33829 "EHLO mail-wg0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751469AbaC0KIC (ORCPT ); Thu, 27 Mar 2014 06:08:02 -0400 Received: by mail-wg0-f45.google.com with SMTP id l18so2254281wgh.4 for ; Thu, 27 Mar 2014 03:08:01 -0700 (PDT) X-Received: by 10.180.77.74 with SMTP id q10mr3523780wiw.39.1395914880932; Thu, 27 Mar 2014 03:08:00 -0700 (PDT) Received: from localhost ([213.122.173.131]) by mx.google.com with ESMTPSA id t6sm10859787wix.4.2014.03.27.03.07.56 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 27 Mar 2014 03:08:00 -0700 (PDT) From: Viresh Kumar To: rjw@rjwysocki.net Cc: linaro-kernel@lists.linaro.org, cpufreq@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, srivatsa.bhat@linux.vnet.ibm.com, ego@linux.vnet.ibm.com, svaidy@linux.vnet.ibm.com, preeti@linux.vnet.ibm.com, Viresh Kumar Subject: [PATCH] cpufreq: don't print value of .driver_data from core Date: Thu, 27 Mar 2014 15:37:22 +0530 Message-Id: <2490cd0aaeaaeb88131c8089d491c485f08da5da.1395914766.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 1.7.12.rc2.18.g61b472e Sender: cpufreq-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: cpufreq@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: viresh.kumar@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.178 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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 Reviewed-by: Srivatsa S. Bhat --- drivers/cpufreq/freq_table.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/cpufreq/freq_table.c b/drivers/cpufreq/freq_table.c index 8e54f97..f002272 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; }