From patchwork Fri Sep 13 13:00:56 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 20164 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vb0-f70.google.com (mail-vb0-f70.google.com [209.85.212.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 8BADE20358 for ; Fri, 13 Sep 2013 13:16:04 +0000 (UTC) Received: by mail-vb0-f70.google.com with SMTP id h10sf1195395vbh.5 for ; Fri, 13 Sep 2013 06:16:04 -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=GThuzRGCjvXEYl5UYtvwuX7wTZlqHJfeXye8kdc7CGk=; b=O8yzbypaJITL6Eo8QuA6qUuGsma+NMDSnGqj2Li7W/MNezAOnGVl9beZTZ2nIFUSDy NHtQjLFGjXdHBRNf1FacPKkoju/JtRjwsPk0+lKLiNI7P49aXFW48Ut3yo837rBTWQIB lwRVucVDWvrvODC8zlBRz1x7+oleTgUV3HSmhd2m0fn6Mql01pRnHTW0H+y6URw7WiF9 eexI1Lus5Hsk6LF+5aptl2M6fz2URveUWLOUTxgAsTUmTvkwS8yb7JYNSf9flhTHAJSk zJBeRrr4SmBWyKA1mR52fARNy+zu8A8FT88iMrIArLLoTYBQdqppRX3wDcVTKykGAbUe Vu6Q== X-Gm-Message-State: ALoCoQlRD3R6oDrakqTHT74P76ulvWIWu7L2dXTzSFDJdq3SZ9JUM7tdvHdyOG6eYDNopXvNj5EN X-Received: by 10.236.189.37 with SMTP id b25mr674317yhn.48.1379078164312; Fri, 13 Sep 2013 06:16:04 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.110.9 with SMTP id hw9ls1100916qeb.16.gmail; Fri, 13 Sep 2013 06:16:04 -0700 (PDT) X-Received: by 10.52.170.111 with SMTP id al15mr31850vdc.43.1379078164096; Fri, 13 Sep 2013 06:16:04 -0700 (PDT) Received: from mail-vc0-f172.google.com (mail-vc0-f172.google.com [209.85.220.172]) by mx.google.com with ESMTPS id wp10si3114797vdb.19.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:16:04 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.172 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.172; Received: by mail-vc0-f172.google.com with SMTP id m17so923940vca.3 for ; Fri, 13 Sep 2013 06:16:04 -0700 (PDT) X-Received: by 10.220.10.194 with SMTP id q2mr11831391vcq.2.1379078164003; Fri, 13 Sep 2013 06:16:04 -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 u4csp80084vcz; Fri, 13 Sep 2013 06:16:03 -0700 (PDT) X-Received: by 10.68.245.227 with SMTP id xr3mr2057227pbc.182.1379078163168; Fri, 13 Sep 2013 06:16:03 -0700 (PDT) Received: from mail-pb0-f45.google.com (mail-pb0-f45.google.com [209.85.160.45]) by mx.google.com with ESMTPS id dj4si7428097pbc.194.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:16:03 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.45 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.160.45; Received: by mail-pb0-f45.google.com with SMTP id mc17so1225717pbc.4 for ; Fri, 13 Sep 2013 06:16:02 -0700 (PDT) X-Received: by 10.67.4.197 with SMTP id cg5mr15225486pad.10.1379078162743; Fri, 13 Sep 2013 06:16:02 -0700 (PDT) Received: from localhost ([122.167.78.148]) by mx.google.com with ESMTPSA id xs1sm18059964pac.7.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:16:02 -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 , Dmitry Eremin-Solenikov Subject: [PATCH 110/228] cpufreq: maple: don't initialize part of policy that is set by core too Date: Fri, 13 Sep 2013 18:30:56 +0530 Message-Id: <60e87dd334e5771e4eed764254e47e7138ef9e58.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.172 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 b23d1d8..1c0cec1 100644 --- a/drivers/cpufreq/maple-cpufreq.c +++ b/drivers/cpufreq/maple-cpufreq.c @@ -166,7 +166,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. */