From patchwork Wed Aug 14 13:31:55 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 19119 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ve0-f200.google.com (mail-ve0-f200.google.com [209.85.128.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id EBEC92390D for ; Wed, 14 Aug 2013 13:33:30 +0000 (UTC) Received: by mail-ve0-f200.google.com with SMTP id oz10sf10776143veb.11 for ; Wed, 14 Aug 2013 06:33:30 -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=ewz9vReaE8gD5kgEyJvzFl6wYqJcMRXrnzcjvV9qbx0=; b=VUBY80mYjwhtTlOYNnSV44bHBgeYtjb49s2a3fNXTHt4/QYGB3kh5QoAgfUyMoN4ZL cetuVNf+lljPy4Z/g/3ESGTpdtTC96syg2sbpowWCN0r3gw0oriEIQoabhF30Yg0aEkM MF+uBaRA/wacrE0THHgLK8qzI0xMVBa/cIQO1DSz1AzYePx5OWU6fZ6+X55WgZPyZEGq LH0g63qV8DqeJY1xtKM+sFGrOlJXcwA9GOonDMrTLafMxaSQX7T9LYk0ELLNc/Adyg4Y vAPcdRlGbQu7cn5ml9kXnSddMg/v+Glq1HebkcxfxgbK2EX4Jki+yXERp0i9TrAL6NO0 HLaQ== X-Received: by 10.58.46.114 with SMTP id u18mr2516480vem.22.1376487210659; Wed, 14 Aug 2013 06:33:30 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.104.177 with SMTP id gf17ls3046058qeb.4.gmail; Wed, 14 Aug 2013 06:33:30 -0700 (PDT) X-Received: by 10.52.163.12 with SMTP id ye12mr72916vdb.59.1376487210398; Wed, 14 Aug 2013 06:33:30 -0700 (PDT) Received: from mail-ve0-f181.google.com (mail-ve0-f181.google.com [209.85.128.181]) by mx.google.com with ESMTPS id c11si222266vej.128.2013.08.14.06.33.30 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 14 Aug 2013 06:33:30 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.181 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.181; Received: by mail-ve0-f181.google.com with SMTP id jz10so7539006veb.26 for ; Wed, 14 Aug 2013 06:33:30 -0700 (PDT) X-Gm-Message-State: ALoCoQk4l6NMLvYjJ5WZKiuxj26K1RyNQgwQb1WOElwJuHb9aYL+zJHvg7Tel0yPpRnro1SGMquL X-Received: by 10.220.109.197 with SMTP id k5mr82312vcp.54.1376487210269; Wed, 14 Aug 2013 06:33:30 -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 u4csp213071vcz; Wed, 14 Aug 2013 06:33:29 -0700 (PDT) X-Received: by 10.68.14.234 with SMTP id s10mr9969127pbc.139.1376487209247; Wed, 14 Aug 2013 06:33:29 -0700 (PDT) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx.google.com with ESMTPS id xq4si29412039pab.28.2013.08.14.06.33.28 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 14 Aug 2013 06:33:29 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.54 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.160.54; Received: by mail-pb0-f54.google.com with SMTP id ro12so9409473pbb.27 for ; Wed, 14 Aug 2013 06:33:28 -0700 (PDT) X-Received: by 10.66.25.205 with SMTP id e13mr1147347pag.180.1376487208818; Wed, 14 Aug 2013 06:33:28 -0700 (PDT) Received: from localhost ([122.172.193.46]) by mx.google.com with ESMTPSA id x8sm50328436pbb.39.2013.08.14.06.33.24 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 14 Aug 2013 06:33:28 -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, Viresh Kumar , Shawn Guo Subject: [PATCH 06/37] cpufreq: cpu0: don't initialize part of policy that is set by core too Date: Wed, 14 Aug 2013 19:01:55 +0530 Message-Id: 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.181 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: , Many common initializations of struct policy are moved to core now and hence this driver doesn't need to do it. This patch removes such code. Most recent of those changes is to call ->get() in the core after calling ->init(). Cc: Shawn Guo Signed-off-by: Viresh Kumar --- drivers/cpufreq/cpufreq-cpu0.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/cpufreq/cpufreq-cpu0.c b/drivers/cpufreq/cpufreq-cpu0.c index 000da22..4014925 100644 --- a/drivers/cpufreq/cpufreq-cpu0.c +++ b/drivers/cpufreq/cpufreq-cpu0.c @@ -117,7 +117,6 @@ static int cpu0_cpufreq_init(struct cpufreq_policy *policy) } policy->cpuinfo.transition_latency = transition_latency; - policy->cur = clk_get_rate(cpu_clk) / 1000; /* * The driver only supports the SMP configuartion where all processors