From patchwork Wed Aug 14 13:32:01 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 19125 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ve0-f199.google.com (mail-ve0-f199.google.com [209.85.128.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 68B8B2390D for ; Wed, 14 Aug 2013 13:34:27 +0000 (UTC) Received: by mail-ve0-f199.google.com with SMTP id m1sf6857798ves.2 for ; Wed, 14 Aug 2013 06:34:27 -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=ISJ/qpUxvTD3q//YNdloXdh9RB0Qz9vx/lwsPld1dTY=; b=Nt3ebCBEbaRqAQyDj/kN7b8d1uwaAAihak1Ka+Tjtcze69/aqlwkVYU9AXSvVqK1ks 4w1WjqUnwNoiiBXo23HZhThpeCGD4PNUYRfk7Zq9bXHtUOFOPnGeXlsjJa8UUobAcAzO SfF1ONrtNVXKNgTZ0+CtTkjGGHo0Nxv7GAUe3KXOpaqNlAZOc3V1WHKhW5R2zbED5x9u GHlenRJqSD7SmtcSuH/X/W+2nhvQ0kTvz8Lug1iFFR49JJpbNeFqwvSdsxdZPXqDzMUF XhM9/4b2JZWwYBopadj+ejNvR3BHwwGgEMJy/ONs/Mh/pFoui1JzPOVhvZOrRPhQQ/S8 CZUg== X-Received: by 10.58.106.198 with SMTP id gw6mr2514977veb.6.1376487267162; Wed, 14 Aug 2013 06:34:27 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.121.104 with SMTP id lj8ls3325580qeb.11.gmail; Wed, 14 Aug 2013 06:34:27 -0700 (PDT) X-Received: by 10.58.200.73 with SMTP id jq9mr86575vec.53.1376487267059; Wed, 14 Aug 2013 06:34:27 -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 c11si223424vej.52.2013.08.14.06.34.27 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 14 Aug 2013 06:34:27 -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 p13so7503749vbe.5 for ; Wed, 14 Aug 2013 06:34:27 -0700 (PDT) X-Gm-Message-State: ALoCoQlrLrFHyXNl2lwiqpBqyv2ZeWqYVR+O0uB9YGUXNv/xN/HRU3ZcycqA3/YjwE6mzdEeJF5w X-Received: by 10.220.182.193 with SMTP id cd1mr339604vcb.32.1376487266979; Wed, 14 Aug 2013 06:34:26 -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 u4csp213116vcz; Wed, 14 Aug 2013 06:34:26 -0700 (PDT) X-Received: by 10.66.252.129 with SMTP id zs1mr9772432pac.113.1376487266153; Wed, 14 Aug 2013 06:34:26 -0700 (PDT) Received: from mail-pb0-f49.google.com (mail-pb0-f49.google.com [209.85.160.49]) by mx.google.com with ESMTPS id zo6si10840004pac.228.2013.08.14.06.34.25 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 14 Aug 2013 06:34:26 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.49 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.160.49; Received: by mail-pb0-f49.google.com with SMTP id xb4so9367269pbc.22 for ; Wed, 14 Aug 2013 06:34:25 -0700 (PDT) X-Received: by 10.67.10.11 with SMTP id dw11mr1957629pad.161.1376487265769; Wed, 14 Aug 2013 06:34:25 -0700 (PDT) Received: from localhost ([122.172.193.46]) by mx.google.com with ESMTPSA id vz4sm16937337pab.11.2013.08.14.06.34.22 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 14 Aug 2013 06:34:25 -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 12/37] cpufreq: elanfreq: don't initialize part of policy that is set by core too Date: Wed, 14 Aug 2013 19:02:01 +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/elanfreq.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/cpufreq/elanfreq.c b/drivers/cpufreq/elanfreq.c index 0d133a7..4ab4153 100644 --- a/drivers/cpufreq/elanfreq.c +++ b/drivers/cpufreq/elanfreq.c @@ -179,7 +179,6 @@ static int elanfreq_cpu_init(struct cpufreq_policy *policy) /* cpuinfo and default policy values */ policy->cpuinfo.transition_latency = CPUFREQ_ETERNAL; - policy->cur = elanfreq_get_cpu_frequency(0); return cpufreq_table_validate_and_show(policy, elanfreq_table); }