From patchwork Fri Mar 28 13:41:45 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 27286 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f71.google.com (mail-yh0-f71.google.com [209.85.213.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 6EA1E20062 for ; Fri, 28 Mar 2014 13:42:23 +0000 (UTC) Received: by mail-yh0-f71.google.com with SMTP id a41sf11727131yho.2 for ; Fri, 28 Mar 2014 06:42:22 -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:in-reply-to:references:in-reply-to:references :sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=3MEUKp7Q5u8SL8ekSUkOlCW1YWX2bBT1DlFwyn6//P0=; b=YRyv6JeaMv26O95r//YjhTBNBDVxdegIFj3xFm7rXCb9XvEuk2iszy/wQUcfY9Jfb4 ZScYHWZ8dhz5NjhFkmy47g2jWP3okotnl3p/r3DHQiebaMMdslKraaM4IWGYSJ+jmzw1 bQRTs3MCnOkgDTsPQ52tfUuZUYD7LF9n3gF3LjmCu2PIef3+VvNqLNMxbgg1PDK7RP0J IWyFiK4P4n7wHmb5fZ0080QgfZp8hxqw1KnDh/Y89hHy1NS/uNbUznE/vVcP5cQX6w7r VHQqS/XVHx59tXPDiB7SNuLBenajPIlUxCOXcVj7wVwRbWDKgjYF9LCAW1td3bFArw7Q xKMg== X-Gm-Message-State: ALoCoQkFZG3yaH/6P97VXn5rad9BK8eWVv9Pe6PhPaG7zY98xD3lCAoV9CIz4BT848dn/p5GeiUM X-Received: by 10.58.225.197 with SMTP id rm5mr1841095vec.5.1396014142924; Fri, 28 Mar 2014 06:42:22 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.32.181 with SMTP id h50ls1456400qgh.15.gmail; Fri, 28 Mar 2014 06:42:22 -0700 (PDT) X-Received: by 10.52.51.197 with SMTP id m5mr6096731vdo.9.1396014142714; Fri, 28 Mar 2014 06:42:22 -0700 (PDT) Received: from mail-vc0-f169.google.com (mail-vc0-f169.google.com [209.85.220.169]) by mx.google.com with ESMTPS id p2si1139197vcx.201.2014.03.28.06.42.22 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 28 Mar 2014 06:42:22 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.169 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.169; Received: by mail-vc0-f169.google.com with SMTP id ik5so6050908vcb.0 for ; Fri, 28 Mar 2014 06:42:22 -0700 (PDT) X-Received: by 10.53.1.69 with SMTP id be5mr1248469vdd.27.1396014142623; Fri, 28 Mar 2014 06:42:22 -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.12.8 with SMTP id v8csp9805vcv; Fri, 28 Mar 2014 06:42:22 -0700 (PDT) X-Received: by 10.66.164.135 with SMTP id yq7mr8831546pab.126.1396014141651; Fri, 28 Mar 2014 06:42:21 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id xj10si3718145pab.163.2014.03.28.06.42.21; Fri, 28 Mar 2014 06:42:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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 S1752139AbaC1NmH (ORCPT + 27 others); Fri, 28 Mar 2014 09:42:07 -0400 Received: from mail-pb0-f50.google.com ([209.85.160.50]:40630 "EHLO mail-pb0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751290AbaC1NmD (ORCPT ); Fri, 28 Mar 2014 09:42:03 -0400 Received: by mail-pb0-f50.google.com with SMTP id md12so5029822pbc.37 for ; Fri, 28 Mar 2014 06:42:02 -0700 (PDT) X-Received: by 10.66.216.129 with SMTP id oq1mr8714613pac.75.1396014121957; Fri, 28 Mar 2014 06:42:01 -0700 (PDT) Received: from localhost ([122.178.232.239]) by mx.google.com with ESMTPSA id ir10sm23296356pbc.59.2014.03.28.06.41.57 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 28 Mar 2014 06:42:01 -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, l.majewski@samsung.com, Viresh Kumar Subject: [PATCH V2 2/4] cpufreq: don't print value of .driver_data from core Date: Fri, 28 Mar 2014 19:11:45 +0530 Message-Id: X-Mailer: git-send-email 1.7.12.rc2.18.g61b472e In-Reply-To: <57f831e4e1d45b7d81bc4cf4a94946db57360366.1396013927.git.viresh.kumar@linaro.org> References: <57f831e4e1d45b7d81bc4cf4a94946db57360366.1396013927.git.viresh.kumar@linaro.org> In-Reply-To: <57f831e4e1d45b7d81bc4cf4a94946db57360366.1396013927.git.viresh.kumar@linaro.org> References: <57f831e4e1d45b7d81bc4cf4a94946db57360366.1396013927.git.viresh.kumar@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@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.169 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 --- V1->V2: No Change 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 65a4770..53ff3c2 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; }