From patchwork Wed Aug 14 13:32:21 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 19145 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f199.google.com (mail-qc0-f199.google.com [209.85.216.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id AF1462390D for ; Wed, 14 Aug 2013 13:36:47 +0000 (UTC) Received: by mail-qc0-f199.google.com with SMTP id j10sf10990298qcx.2 for ; Wed, 14 Aug 2013 06:36:47 -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=W/a2PgCOEEP3lJjRnxLtDnoGAwF3VdvDWHdLTVUn4i8=; b=jINeUlJB5VRghgSnlxRl3HedcD0+L5lvCrho1syB0ck3phQjIrwL2MPti8AxRjVt8w XoZ8rEEyUdmEERNNFCOOBzo34O32Kav0BE9q0WEalBsIWP3M3Gxmn8zIhjadoM5I9mAg JNAXczV0WU22j6FCWqHHyevIxvV3+A8Zt/3bttwNPp0eTbANmh4QuYcKFTKfwsqcQEi8 It7LBENnjQzKhBbarBscowOLtw8qz74ptTez5ZKpF9qEavavk8CcfJdo4PsZNiFV0u8c 18VxljrPEfxq6w2t61GLjM9BfGjXBqVMHEAkFuN/iInkE203SmKtCb6GctmF3cc0LDAj r4Jg== X-Received: by 10.58.205.143 with SMTP id lg15mr2485886vec.13.1376487407400; Wed, 14 Aug 2013 06:36:47 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.81.179 with SMTP id b19ls3234004qey.31.gmail; Wed, 14 Aug 2013 06:36:47 -0700 (PDT) X-Received: by 10.58.155.37 with SMTP id vt5mr118996veb.41.1376487407302; Wed, 14 Aug 2013 06:36:47 -0700 (PDT) Received: from mail-vb0-f46.google.com (mail-vb0-f46.google.com [209.85.212.46]) by mx.google.com with ESMTPS id vf5si10991067vdc.135.2013.08.14.06.36.47 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 14 Aug 2013 06:36:47 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.46 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.46; Received: by mail-vb0-f46.google.com with SMTP id p13so7592385vbe.19 for ; Wed, 14 Aug 2013 06:36:47 -0700 (PDT) X-Gm-Message-State: ALoCoQnVkapiN/PNdg432dO5FMyIUewtMhO9o14HYwQKQgZ7Tb5yArnH0dJgcXXcqNfH63cL8pZX X-Received: by 10.58.252.134 with SMTP id zs6mr4659665vec.25.1376487407193; Wed, 14 Aug 2013 06:36:47 -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 u4csp213261vcz; Wed, 14 Aug 2013 06:36:46 -0700 (PDT) X-Received: by 10.66.21.37 with SMTP id s5mr10087823pae.103.1376487406279; Wed, 14 Aug 2013 06:36:46 -0700 (PDT) Received: from mail-pb0-f47.google.com (mail-pb0-f47.google.com [209.85.160.47]) by mx.google.com with ESMTPS id yl7si29407844pab.116.2013.08.14.06.36.45 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 14 Aug 2013 06:36:46 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.47 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.160.47; Received: by mail-pb0-f47.google.com with SMTP id rr4so9277041pbb.20 for ; Wed, 14 Aug 2013 06:36:45 -0700 (PDT) X-Received: by 10.66.161.229 with SMTP id xv5mr10066292pab.87.1376487405913; Wed, 14 Aug 2013 06:36:45 -0700 (PDT) Received: from localhost ([122.172.193.46]) by mx.google.com with ESMTPSA id sz6sm53398946pab.5.2013.08.14.06.36.42 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 14 Aug 2013 06:36:45 -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 32/37] cpufreq: sc520_freq: don't initialize part of policy that is set by core too Date: Wed, 14 Aug 2013 19:02:21 +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.212.46 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/sc520_freq.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/cpufreq/sc520_freq.c b/drivers/cpufreq/sc520_freq.c index cd62472..6c86452 100644 --- a/drivers/cpufreq/sc520_freq.c +++ b/drivers/cpufreq/sc520_freq.c @@ -94,7 +94,6 @@ static int sc520_freq_cpu_init(struct cpufreq_policy *policy) /* cpuinfo and default policy values */ policy->cpuinfo.transition_latency = 1000000; /* 1ms */ - policy->cur = sc520_freq_get_cpu_frequency(0); return cpufreq_table_validate_and_show(policy, sc520_freq_table); }