From patchwork Wed Aug 14 13:32:10 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 19134 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-gh0-f199.google.com (mail-gh0-f199.google.com [209.85.160.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 1F87C2390D for ; Wed, 14 Aug 2013 13:35:30 +0000 (UTC) Received: by mail-gh0-f199.google.com with SMTP id g14sf363743ghb.10 for ; Wed, 14 Aug 2013 06:35:29 -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=EbzltRscTmoo28zq6z44Tppl1BIbUg7etQOsT8/+PgI=; b=St1vE9QGorYoh3lyu8t9pIhxH15PO5UTyq3b8f0JkaM2awgwBEOzoWRGy6tiUn70HZ SIVmTXGqnbdcjPPeDA+8Snp18zR+ozlD08AFjXq2FvhU7csom0160v9UeBoiG+qOiGZ6 c//mOLXi+K6fvddfhfebFHat6v2wpQzPtvyLSYY9l4OofuZxebP8QSTfcatte0EIuh7u kcTvWwef606JqyBXwfsYwhxVFNmBB0AUYnqTo0LArSjjE6N9I9jHSeiGFQX5WZZcYKov tkwMhA79xregkdQUE/Mg0S6uvFg9eA5OuiKot7zssUSuW4Wsz8DZNZsEX1yFHy4HdweL FrCg== X-Received: by 10.52.231.226 with SMTP id tj2mr1614829vdc.8.1376487329666; Wed, 14 Aug 2013 06:35:29 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.73.193 with SMTP id n1ls3272120qev.50.gmail; Wed, 14 Aug 2013 06:35:29 -0700 (PDT) X-Received: by 10.58.80.7 with SMTP id n7mr9807106vex.23.1376487329556; Wed, 14 Aug 2013 06:35:29 -0700 (PDT) Received: from mail-vb0-f44.google.com (mail-vb0-f44.google.com [209.85.212.44]) by mx.google.com with ESMTPS id vf5si10989099vdc.109.2013.08.14.06.35.29 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 14 Aug 2013 06:35:29 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.44 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.44; Received: by mail-vb0-f44.google.com with SMTP id e13so7683675vbg.3 for ; Wed, 14 Aug 2013 06:35:29 -0700 (PDT) X-Gm-Message-State: ALoCoQlrkGcLsTqPIZ4c1c90NX/P+DIje2uhZjRGEpW7YqvFAPYWujZRbEjuUPChm5q3fd59sBIc X-Received: by 10.58.152.3 with SMTP id uu3mr9667091veb.16.1376487329467; Wed, 14 Aug 2013 06:35:29 -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 u4csp213185vcz; Wed, 14 Aug 2013 06:35:28 -0700 (PDT) X-Received: by 10.66.233.37 with SMTP id tt5mr9810871pac.95.1376487328576; Wed, 14 Aug 2013 06:35:28 -0700 (PDT) Received: from mail-pb0-f48.google.com (mail-pb0-f48.google.com [209.85.160.48]) by mx.google.com with ESMTPS id bk3si28268859pbd.148.2013.08.14.06.35.28 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 14 Aug 2013 06:35:28 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.48 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.160.48; Received: by mail-pb0-f48.google.com with SMTP id ma3so9340699pbc.35 for ; Wed, 14 Aug 2013 06:35:28 -0700 (PDT) X-Received: by 10.66.122.5 with SMTP id lo5mr1543195pab.175.1376487328208; Wed, 14 Aug 2013 06:35:28 -0700 (PDT) Received: from localhost ([122.172.193.46]) by mx.google.com with ESMTPSA id yo2sm11972571pab.8.2013.08.14.06.35.24 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 14 Aug 2013 06:35:27 -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 , Dmitry Eremin-Solenikov Subject: [PATCH 21/37] cpufreq: maple: don't initialize part of policy that is set by core too Date: Wed, 14 Aug 2013 19:02:10 +0530 Message-Id: <396e16342e6dd98cc5867b321b1a187171a85738.1376486713.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.212.44 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: Dmitry Eremin-Solenikov Signed-off-by: Viresh Kumar --- drivers/cpufreq/maple-cpufreq.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/cpufreq/maple-cpufreq.c b/drivers/cpufreq/maple-cpufreq.c index 1c24219..b508147 100644 --- a/drivers/cpufreq/maple-cpufreq.c +++ b/drivers/cpufreq/maple-cpufreq.c @@ -158,7 +158,6 @@ static unsigned int maple_cpufreq_get_speed(unsigned int cpu) static int maple_cpufreq_cpu_init(struct cpufreq_policy *policy) { policy->cpuinfo.transition_latency = 12000; - policy->cur = maple_cpu_freqs[maple_scom_query_freq()].frequency; /* secondary CPUs are tied to the primary one by the * cpufreq core if in the secondary policy we tell it that * it actually must be one policy together with all others. */