From patchwork Wed Aug 14 13:31:52 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 19116 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qe0-f69.google.com (mail-qe0-f69.google.com [209.85.128.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id A90222390D for ; Wed, 14 Aug 2013 13:33:09 +0000 (UTC) Received: by mail-qe0-f69.google.com with SMTP id 1sf365556qec.4 for ; Wed, 14 Aug 2013 06:33:09 -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=c/wNVPfqjpzE0B9/RS0lnbCMvAQ2UW6sqArpHbNxpto=; b=A8BxuSGLiKWe1TpzodMTFMugEq9AVBBpuqmh65YtgtF4bVZB+YK2nNbeROWDxrmML2 aVJiwMLABHnRGFtHaRkX/2ozvjeveyiDfLVdOfBB1dJQsln9TrhN9GK3xO9FnUkdpiMq JrEHAn1D+3/jrjX67JJSMWcQz00UsDYy2cPX6CGbwdWlNVxUdY+McppYAvkZ76rLjQYd FBs3qutwdZ+eH/3Q5BGSDTg7uAiV06rNyZFJlfSEPygpMRygTxtprD0PlfUngLZmaOuc lGSLtp8s3G+VIaBaET/Z0KSdzXjZ3Fg9M77FZY+O07qP3cE84TJcm9E8JEy+v/qQpeL+ TLkw== X-Received: by 10.58.32.167 with SMTP id k7mr482887vei.41.1376487189273; Wed, 14 Aug 2013 06:33:09 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.116.168 with SMTP id jx8ls2830086qeb.34.gmail; Wed, 14 Aug 2013 06:33:08 -0700 (PDT) X-Received: by 10.58.67.9 with SMTP id j9mr9797832vet.22.1376487188857; Wed, 14 Aug 2013 06:33:08 -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 x7si11024049vdo.74.2013.08.14.06.33.08 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 14 Aug 2013 06:33:08 -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 e13so7681237vbg.3 for ; Wed, 14 Aug 2013 06:33:08 -0700 (PDT) X-Gm-Message-State: ALoCoQkyVTCsiJdIBwYEbxDZXAudP/FH+ioPKLESNI3PVAC6uk7DXgPA+hdbzqK25jlE6VyGOopT X-Received: by 10.52.89.197 with SMTP id bq5mr67247vdb.65.1376487188775; Wed, 14 Aug 2013 06:33:08 -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 u4csp213044vcz; Wed, 14 Aug 2013 06:33:08 -0700 (PDT) X-Received: by 10.68.190.197 with SMTP id gs5mr6636618pbc.90.1376487187918; Wed, 14 Aug 2013 06:33:07 -0700 (PDT) Received: from mail-pa0-f50.google.com (mail-pa0-f50.google.com [209.85.220.50]) by mx.google.com with ESMTPS id rt3si28220036pbc.323.2013.08.14.06.33.07 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 14 Aug 2013 06:33:07 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.50 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.220.50; Received: by mail-pa0-f50.google.com with SMTP id fb10so10003610pad.23 for ; Wed, 14 Aug 2013 06:33:07 -0700 (PDT) X-Received: by 10.68.196.202 with SMTP id io10mr1554172pbc.178.1376487187377; Wed, 14 Aug 2013 06:33:07 -0700 (PDT) Received: from localhost ([122.172.193.46]) by mx.google.com with ESMTPSA id ib9sm50320911pbc.43.2013.08.14.06.33.03 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 14 Aug 2013 06:33:06 -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 Subject: [PATCH 03/37] cpufreq: arm_big_little: don't initialize part of policy that is set by core too Date: Wed, 14 Aug 2013 19:01:52 +0530 Message-Id: <164053c9d49336d2482ea27f5f8b88e416f8b1ae.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(). Signed-off-by: Viresh Kumar --- drivers/cpufreq/arm_big_little.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/cpufreq/arm_big_little.c b/drivers/cpufreq/arm_big_little.c index 4bba5ad..daf4423 100644 --- a/drivers/cpufreq/arm_big_little.c +++ b/drivers/cpufreq/arm_big_little.c @@ -164,8 +164,6 @@ static int bL_cpufreq_init(struct cpufreq_policy *policy) else policy->cpuinfo.transition_latency = CPUFREQ_ETERNAL; - policy->cur = bL_cpufreq_get(policy->cpu); - cpumask_copy(policy->cpus, topology_core_cpumask(policy->cpu)); dev_info(cpu_dev, "%s: CPU %d initialized\n", __func__, policy->cpu);