From patchwork Fri Sep 13 12:59:17 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 20065 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vc0-f197.google.com (mail-vc0-f197.google.com [209.85.220.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id B3E78202E6 for ; Fri, 13 Sep 2013 13:04:21 +0000 (UTC) Received: by mail-vc0-f197.google.com with SMTP id gd11sf1187642vcb.4 for ; Fri, 13 Sep 2013 06:04:21 -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 :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=X02GS+UK6Si+GoPTFXlxXCywzEIidY9maWtQFyU/pDU=; b=h9+Z03qu0dzjWldlwDqUkhC1gOW/u6zjQ0DJ+YNTubUUocJtQSBW5rnKvOdMeyZSt9 28+DYA9t0jp+38+RawHeFOq3KsYLWsiZZvaVCmQgdGbCV7oOlzSZqDwdUS33Vyp8zTxu NKGXmiEGMI2ynG5SnABZqWgTJO0Tu7qqPMV7vY/YmJ9H4Y7z4IhWkmTkzpnZPOdMQZPb 9lmY3ceRfzVHzf6G57/DYR1F0V3NxrZYZwlaMQwcSaExs9wpq8zvu3tXsXr+c7pjdR+X 23rCEKEIy1YgJDNuZVpiv8JuNKJksM4js5g+zMVnKth4ZmEaca4MUjx5lrL4lPFURVD/ 910Q== X-Gm-Message-State: ALoCoQlvPINhA+26u+uK2c+zBc3OIAWVlnOyoUUv2cQVTg/kpng9H1aBI325AqoMGeEhi4S94PTE X-Received: by 10.58.181.103 with SMTP id dv7mr949107vec.15.1379077461489; Fri, 13 Sep 2013 06:04:21 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.1.102 with SMTP id 6ls1066048qel.40.gmail; Fri, 13 Sep 2013 06:04:21 -0700 (PDT) X-Received: by 10.58.118.130 with SMTP id km2mr11852712veb.0.1379077461271; Fri, 13 Sep 2013 06:04:21 -0700 (PDT) Received: from mail-vc0-f177.google.com (mail-vc0-f177.google.com [209.85.220.177]) by mx.google.com with ESMTPS id tj1si3103722vdc.14.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:04:21 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.177 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.177; Received: by mail-vc0-f177.google.com with SMTP id gf12so878492vcb.22 for ; Fri, 13 Sep 2013 06:04:21 -0700 (PDT) X-Received: by 10.52.98.131 with SMTP id ei3mr10011105vdb.4.1379077461172; Fri, 13 Sep 2013 06:04:21 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp79454vcz; Fri, 13 Sep 2013 06:04:20 -0700 (PDT) X-Received: by 10.68.253.67 with SMTP id zy3mr13479837pbc.137.1379077459807; Fri, 13 Sep 2013 06:04:19 -0700 (PDT) Received: from mail-pd0-f181.google.com (mail-pd0-f181.google.com [209.85.192.181]) by mx.google.com with ESMTPS id ql10si7428370pbb.10.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:04:19 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.192.181 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.192.181; Received: by mail-pd0-f181.google.com with SMTP id g10so1227771pdj.12 for ; Fri, 13 Sep 2013 06:04:19 -0700 (PDT) X-Received: by 10.66.141.165 with SMTP id rp5mr15408554pab.90.1379077458954; Fri, 13 Sep 2013 06:04:18 -0700 (PDT) Received: from localhost ([122.167.78.148]) by mx.google.com with ESMTPSA id y5sm11651628pbs.18.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:04:18 -0700 (PDT) From: Viresh Kumar To: rjw@sisk.pl Cc: linaro-kernel@lists.linaro.org, patches@linaro.org, cpufreq@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Viresh Kumar , Kukjin Kim Subject: [PATCH 011/228] cpufreq: s3cx4xx: call cpufreq_frequency_table_get_attr() Date: Fri, 13 Sep 2013 18:29:17 +0530 Message-Id: <2636b035d75e4777a12b76534475f85f15a3b676.1379063063.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 1.7.12.rc2.18.g61b472e In-Reply-To: References: In-Reply-To: References: 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.177 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 Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , This exposes frequency table of driver to cpufreq core and is required for core to guess what the index for a target frequency is, when it calls cpufreq_frequency_table_target(). And so this driver needs to expose it. Cc: Kukjin Kim Signed-off-by: Viresh Kumar --- drivers/cpufreq/s3c24xx-cpufreq.c | 4 +++- drivers/cpufreq/s3c64xx-cpufreq.c | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/cpufreq/s3c24xx-cpufreq.c b/drivers/cpufreq/s3c24xx-cpufreq.c index b0f343f..f2c872c 100644 --- a/drivers/cpufreq/s3c24xx-cpufreq.c +++ b/drivers/cpufreq/s3c24xx-cpufreq.c @@ -386,8 +386,10 @@ static int s3c_cpufreq_init(struct cpufreq_policy *policy) /* feed the latency information from the cpu driver */ policy->cpuinfo.transition_latency = cpu_cur.info->latency; - if (ftab) + if (ftab) { cpufreq_frequency_table_cpuinfo(policy, ftab); + cpufreq_frequency_table_get_attr(ftab, policy->cpu); + } return 0; } diff --git a/drivers/cpufreq/s3c64xx-cpufreq.c b/drivers/cpufreq/s3c64xx-cpufreq.c index 8a72b0c..9024043 100644 --- a/drivers/cpufreq/s3c64xx-cpufreq.c +++ b/drivers/cpufreq/s3c64xx-cpufreq.c @@ -257,6 +257,9 @@ static int s3c64xx_cpufreq_driver_init(struct cpufreq_policy *policy) ret); regulator_put(vddarm); clk_put(armclk); + } else { + cpufreq_frequency_table_get_attr(s3c64xx_freq_table, + policy->cpu); } return ret;