From patchwork Thu Aug 8 13:48:05 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 18852 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f198.google.com (mail-qc0-f198.google.com [209.85.216.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 0FD31246A4 for ; Thu, 8 Aug 2013 13:49:17 +0000 (UTC) Received: by mail-qc0-f198.google.com with SMTP id a11sf3655412qcx.9 for ; Thu, 08 Aug 2013 06:49:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-gm-message-state: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=LQgA/aycCbMDKH9uMZYExjhsp2Je4Y/HjAyWxfon22c=; b=IEJj9EN9vgSKYT0pvzXmmmexre2XFOsrO5wEBtB0i5qNS6ujOi3iw68rF8xOykl1ES yGgjjltRg4TIU0Bt7qiztJxa4SOXhjmloNz/wxj+6iriOeZ5NbeXhomdfzlixfn2DQgs ojw0efIeBQ0R5dEUn0JKBzACy997oXMy9aNF6zQ54MZ7vPBbeLYcg+jOYKE8TH9fbdE2 L+9N99bshp3dPFPsBskXZ8dsFtqNiOhxhDvLS1nD6NXSmHZf+Ef96j1Ki2ye4QfRhMv3 JSucQEG0uSV8UjcGzV7YS2A+D/x9Tq2d7CSMaR4ZP4MWaLwjoDvJbx/0lkCey77r9dXO PAyw== X-Received: by 10.236.88.231 with SMTP id a67mr3230373yhf.39.1375969756849; Thu, 08 Aug 2013 06:49:16 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.94.163 with SMTP id dd3ls1115224qeb.92.gmail; Thu, 08 Aug 2013 06:49:16 -0700 (PDT) X-Received: by 10.58.46.196 with SMTP id x4mr3095396vem.73.1375969756736; Thu, 08 Aug 2013 06:49:16 -0700 (PDT) Received: from mail-ve0-f169.google.com (mail-ve0-f169.google.com [209.85.128.169]) by mx.google.com with ESMTPS id t10si3089674vcr.110.2013.08.08.06.49.16 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 08 Aug 2013 06:49:16 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.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.128.169; Received: by mail-ve0-f169.google.com with SMTP id db10so3069473veb.14 for ; Thu, 08 Aug 2013 06:49:16 -0700 (PDT) X-Gm-Message-State: ALoCoQm8ZABFYtwoVczOuttOhmOqVtCyjzrTq78bRvnsKY9vMkcKqxvGjMp/hYa9rrAALjKMoJVN X-Received: by 10.52.180.229 with SMTP id dr5mr2672433vdc.20.1375969756637; Thu, 08 Aug 2013 06:49:16 -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 u4csp16689vcz; Thu, 8 Aug 2013 06:49:15 -0700 (PDT) X-Received: by 10.68.197.136 with SMTP id iu8mr6091838pbc.183.1375969755268; Thu, 08 Aug 2013 06:49:15 -0700 (PDT) Received: from mail-pa0-f48.google.com (mail-pa0-f48.google.com [209.85.220.48]) by mx.google.com with ESMTPS id c10si9724600pav.316.2013.08.08.06.49.14 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 08 Aug 2013 06:49:15 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.48 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.220.48; Received: by mail-pa0-f48.google.com with SMTP id kp13so3448152pab.7 for ; Thu, 08 Aug 2013 06:49:14 -0700 (PDT) X-Received: by 10.68.181.163 with SMTP id dx3mr6068109pbc.186.1375969754861; Thu, 08 Aug 2013 06:49:14 -0700 (PDT) Received: from localhost ([122.172.193.46]) by mx.google.com with ESMTPSA id in2sm11118178pbc.37.2013.08.08.06.49.10 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 08 Aug 2013 06:49:14 -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 03/35] cpufreq: s3cx4xx: call cpufreq_frequency_table_get_attr() Date: Thu, 8 Aug 2013 19:18:05 +0530 Message-Id: <4af1a6a5a2d952f0a2ca641109ba185b346dfe5d.1375964117.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.128.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 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 f169ee5..8843454 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;