From patchwork Wed Jan 25 05:19:41 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tushar Behera X-Patchwork-Id: 6393 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 073EB23ECA for ; Wed, 25 Jan 2012 05:19:49 +0000 (UTC) Received: from mail-bk0-f52.google.com (mail-bk0-f52.google.com [209.85.214.52]) by fiordland.canonical.com (Postfix) with ESMTP id E2C69A18812 for ; Wed, 25 Jan 2012 05:19:48 +0000 (UTC) Received: by bkar19 with SMTP id r19so4943484bka.11 for ; Tue, 24 Jan 2012 21:19:48 -0800 (PST) Received: by 10.205.139.12 with SMTP id iu12mr6224159bkc.2.1327468788625; Tue, 24 Jan 2012 21:19:48 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.204.130.220 with SMTP id u28cs125371bks; Tue, 24 Jan 2012 21:19:48 -0800 (PST) Received: by 10.68.115.133 with SMTP id jo5mr37291825pbb.50.1327468786097; Tue, 24 Jan 2012 21:19:46 -0800 (PST) Received: from mail-pw0-f50.google.com (mail-pw0-f50.google.com [209.85.160.50]) by mx.google.com with ESMTPS id e10si23908837pbb.57.2012.01.24.21.19.45 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 24 Jan 2012 21:19:46 -0800 (PST) Received-SPF: neutral (google.com: 209.85.160.50 is neither permitted nor denied by best guess record for domain of tushar.behera@linaro.org) client-ip=209.85.160.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.160.50 is neither permitted nor denied by best guess record for domain of tushar.behera@linaro.org) smtp.mail=tushar.behera@linaro.org Received: by pbdv3 with SMTP id v3so3664098pbd.37 for ; Tue, 24 Jan 2012 21:19:45 -0800 (PST) Received: by 10.68.194.74 with SMTP id hu10mr37262039pbc.14.1327468785214; Tue, 24 Jan 2012 21:19:45 -0800 (PST) Received: from [10.10.10.29] ([115.113.119.130]) by mx.google.com with ESMTPS id 1sm3497237pbn.16.2012.01.24.21.19.43 (version=SSLv3 cipher=OTHER); Tue, 24 Jan 2012 21:19:44 -0800 (PST) Message-ID: <4F1F90ED.2090206@linaro.org> Date: Wed, 25 Jan 2012 10:49:41 +0530 From: Tushar Behera User-Agent: Mozilla/5.0 (X11; Linux i686; rv:8.0) Gecko/20111124 Thunderbird/8.0 MIME-Version: 1.0 To: patches@linaro.org, Inderpal Singh Subject: Fwd: [PATCH] [CPUFREQ] EXYNOS: Initialize locking_frequency with initial frequency References: <1327466713-29101-1-git-send-email-tushar.behera@linaro.org> In-Reply-To: <1327466713-29101-1-git-send-email-tushar.behera@linaro.org> X-Forwarded-Message-Id: <1327466713-29101-1-git-send-email-tushar.behera@linaro.org> X-Gm-Message-State: ALoCoQnN8Tm8bOBjRRAakIRxHwbuC3Q0XGlXedPtFFJHAo7P80wxLQsvX4R5E4ksnkdC0YnW1y73 Subject: [PATCH] [CPUFREQ] EXYNOS: Initialize locking_frequency with initial frequency Date: Wed, 25 Jan 2012 10:15:13 +0530 From: Tushar Behera To: cpufreq@vger.kernel.org, linux-samsung-soc@vger.kernel.org CC: davej@redhat.com, jc.lee@samsung.com, myungjoo.ham@samsung.com As per definition, locking_frequency is the initial frequency which is set by boot-loader. Hence the value is updated with the initial value during boot time init call. This code was present in exynos210-cpufreq.c before this consolidation patch. - a125a17fa61a ([CPUFREQ] EXYNOS: Make EXYNOS common cpufreq driver). Signed-off-by: Tushar Behera Signed-off-by: Inderpal Singh --- The patch is based on v3.3-rc1. drivers/cpufreq/exynos-cpufreq.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/cpufreq/exynos-cpufreq.c b/drivers/cpufreq/exynos-cpufreq.c index 5467879..7cfb516 100644 --- a/drivers/cpufreq/exynos-cpufreq.c +++ b/drivers/cpufreq/exynos-cpufreq.c @@ -210,6 +210,8 @@ static int exynos_cpufreq_cpu_init(struct cpufreq_policy *policy) cpufreq_frequency_table_get_attr(exynos_info->freq_table, policy->cpu); + locking_frequency = exynos_getspeed(0); + /* set the transition latency value */ policy->cpuinfo.transition_latency = 100000;