From patchwork Fri Sep 13 13:01:12 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 20180 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f71.google.com (mail-yh0-f71.google.com [209.85.213.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 9739A20358 for ; Fri, 13 Sep 2013 13:17:57 +0000 (UTC) Received: by mail-yh0-f71.google.com with SMTP id a41sf1243787yho.2 for ; Fri, 13 Sep 2013 06:17:57 -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=kxDBy547wA1wJ3CtuFP2Ax9GUKDE6JXVuNy1dVLbTIs=; b=EUfV4OE9Cosml8SS0CoVYmcPaUkXaxqTNHdVaHtkwZFU+uRuQCtalCdwLF4PcKT/hv edr34ozDCc7mL0kmS9Y4RRe1/k7n2n/8Z/aWWMBk6vjlhO2VSlW1mB7ELNxpO0x9I8Q8 G9xEyhzfUD/l09+wDKMCNYqerFYf5X9eWGsQUpsUgqUd+AMPZOJKGxCoYGTIBz/DmGBi AHOr081ZthU6cUbkOkaPM56cXXlAsLIx7qgPf1LCOFZZRLWthHZ2B63WZetBFMai2y2F TRjgPptPjaCpOMV4JMjiP6pMWe0+E7cL+vjY+b0S7rGwtgZ3z58bloTps5Rx7FpkYSUS +qeQ== X-Gm-Message-State: ALoCoQksfH0CIkH88xT2ujC/riM8D8EbrUQJh9pBoobpdBlZrB4mP8BSEIYfDIqq3RFU64wrSRHA X-Received: by 10.236.17.161 with SMTP id j21mr368754yhj.55.1379078277348; Fri, 13 Sep 2013 06:17:57 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.47.82 with SMTP id b18ls1132380qen.53.gmail; Fri, 13 Sep 2013 06:17:57 -0700 (PDT) X-Received: by 10.221.55.4 with SMTP id vw4mr38427vcb.37.1379078277048; Fri, 13 Sep 2013 06:17:57 -0700 (PDT) Received: from mail-vc0-f174.google.com (mail-vc0-f174.google.com [209.85.220.174]) by mx.google.com with ESMTPS id zw10si3116352vdb.31.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:17:57 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.174 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.174; Received: by mail-vc0-f174.google.com with SMTP id gd11so903215vcb.33 for ; Fri, 13 Sep 2013 06:17:57 -0700 (PDT) X-Received: by 10.220.11.7 with SMTP id r7mr12036290vcr.12.1379078276966; Fri, 13 Sep 2013 06:17:56 -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 u4csp80189vcz; Fri, 13 Sep 2013 06:17:56 -0700 (PDT) X-Received: by 10.68.178.197 with SMTP id da5mr13610673pbc.28.1379078276114; Fri, 13 Sep 2013 06:17:56 -0700 (PDT) Received: from mail-pa0-f46.google.com (mail-pa0-f46.google.com [209.85.220.46]) by mx.google.com with ESMTPS id jx3si7452788pbc.114.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:17:56 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.46 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.220.46; Received: by mail-pa0-f46.google.com with SMTP id fa1so2517737pad.19 for ; Fri, 13 Sep 2013 06:17:55 -0700 (PDT) X-Received: by 10.68.135.228 with SMTP id pv4mr1626275pbb.196.1379078275715; Fri, 13 Sep 2013 06:17:55 -0700 (PDT) Received: from localhost ([122.167.78.148]) by mx.google.com with ESMTPSA id ef10sm18087670pac.1.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:17:55 -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 Subject: [PATCH 126/228] cpufreq: unicore2: don't initialize part of policy that is set by core too Date: Fri, 13 Sep 2013 18:31:12 +0530 Message-Id: <7bb9b8b4104cac9a28b5dab40544b3b397de4732.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.174 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(). Signed-off-by: Viresh Kumar --- drivers/cpufreq/unicore2-cpufreq.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/cpufreq/unicore2-cpufreq.c b/drivers/cpufreq/unicore2-cpufreq.c index 14e6d31..653ae29 100644 --- a/drivers/cpufreq/unicore2-cpufreq.c +++ b/drivers/cpufreq/unicore2-cpufreq.c @@ -66,7 +66,6 @@ static int __init ucv2_cpu_init(struct cpufreq_policy *policy) { if (policy->cpu != 0) return -EINVAL; - policy->cur = ucv2_getspeed(0); policy->min = policy->cpuinfo.min_freq = 250000; policy->max = policy->cpuinfo.max_freq = 1000000; policy->cpuinfo.transition_latency = CPUFREQ_ETERNAL;