From patchwork Wed Aug 14 13:32:00 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 19124 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-gh0-f198.google.com (mail-gh0-f198.google.com [209.85.160.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id D6FCC2390D for ; Wed, 14 Aug 2013 13:34:20 +0000 (UTC) Received: by mail-gh0-f198.google.com with SMTP id r13sf3652228ghr.1 for ; Wed, 14 Aug 2013 06:34:20 -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=M9texK/7qnUbST8dI5Ex1rr7bzCtNQ8DtI0xNOOcNXc=; b=hWSGlfE4wfqp5rhM0KpP7EgXUQFCKhRLxTM4t5z2Qylr5ROyDUadAh3BIChtchvtGC Z2OeuakXLsGQDtknbq56eJAQC2WqRGeY86FOnAmNPHHoOmTiT7kBTKd60Uhls12DKgMT EWqaDSiv7RRmqP5vJmszLUCaVdJm9GiRDK7l0++DV/3pMGIRx+eQbh+Ij0hpchDfV276 dcxbqAefiHQFjebdk7mM6lXuOZc+acoK7m+6iuW/EdVXHRLgzFF1RwHCyNxIEzAIPcgr 23KS2Wvq4uy0Em/xGCvVFSRDrFv7rxPU7+d3bDESDohRCxQQbHs092c8Smq0x9IcfKr4 OH2Q== X-Received: by 10.58.33.36 with SMTP id o4mr2531461vei.28.1376487260470; Wed, 14 Aug 2013 06:34:20 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.39.165 with SMTP id q5ls276760qek.22.gmail; Wed, 14 Aug 2013 06:34:20 -0700 (PDT) X-Received: by 10.220.58.5 with SMTP id e5mr82038vch.52.1376487260340; Wed, 14 Aug 2013 06:34:20 -0700 (PDT) Received: from mail-vb0-f41.google.com (mail-vb0-f41.google.com [209.85.212.41]) by mx.google.com with ESMTPS id h4si7487960vdw.136.2013.08.14.06.34.20 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 14 Aug 2013 06:34:20 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.41 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.41; Received: by mail-vb0-f41.google.com with SMTP id g17so7585425vbg.14 for ; Wed, 14 Aug 2013 06:34:20 -0700 (PDT) X-Gm-Message-State: ALoCoQl1buWiOyOp2CutJ2sYYyE/svtAGyHBY8QuR0O0ceco0Cs6uIuun+Gss0bFcWHSGpDV2KbU X-Received: by 10.220.88.13 with SMTP id y13mr9852141vcl.20.1376487260236; Wed, 14 Aug 2013 06:34:20 -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 u4csp213112vcz; Wed, 14 Aug 2013 06:34:19 -0700 (PDT) X-Received: by 10.67.1.101 with SMTP id bf5mr9806443pad.50.1376487259394; Wed, 14 Aug 2013 06:34:19 -0700 (PDT) Received: from mail-pd0-f171.google.com (mail-pd0-f171.google.com [209.85.192.171]) by mx.google.com with ESMTPS id to1si29358278pab.341.2013.08.14.06.34.19 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 14 Aug 2013 06:34:19 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.192.171 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.192.171; Received: by mail-pd0-f171.google.com with SMTP id g10so6342540pdj.16 for ; Wed, 14 Aug 2013 06:34:19 -0700 (PDT) X-Received: by 10.68.249.68 with SMTP id ys4mr2223945pbc.159.1376487258994; Wed, 14 Aug 2013 06:34:18 -0700 (PDT) Received: from localhost ([122.172.193.46]) by mx.google.com with ESMTPSA id ll5sm53357334pab.19.2013.08.14.06.34.15 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 14 Aug 2013 06:34:18 -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 11/37] cpufreq: e_powersaver: don't initialize part of policy that is set by core too Date: Wed, 14 Aug 2013 19:02:00 +0530 Message-Id: <09d82356fefb073bfcc6efd4374dbbb2d392a3dc.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.41 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/e_powersaver.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/cpufreq/e_powersaver.c b/drivers/cpufreq/e_powersaver.c index 60cd576..b39c4ef 100644 --- a/drivers/cpufreq/e_powersaver.c +++ b/drivers/cpufreq/e_powersaver.c @@ -384,7 +384,6 @@ static int eps_cpu_init(struct cpufreq_policy *policy) } policy->cpuinfo.transition_latency = 140000; /* 844mV -> 700mV in ns */ - policy->cur = fsb * current_multiplier; ret = cpufreq_table_validate_and_show(policy, ¢aur->freq_table[0]); if (ret) {