From patchwork Wed Aug 14 13:31: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: 19120 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 905492390D for ; Wed, 14 Aug 2013 13:33:37 +0000 (UTC) Received: by mail-qe0-f69.google.com with SMTP id 1sf11150814qec.8 for ; Wed, 14 Aug 2013 06:33:37 -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=noiPA0meren5eH1dF17xL/v3VKjuc1n3rpEVS0J0DZo=; b=G1FdLIwNh8wYOGNWUvfN4MJJ2Or9KrtqIDlS8t6lSVZjLXJV0Jo3eol6vTclHuHJyR G2QCTlge1Gc0YhwFsUbdRxDY57HsxnzzkCOg9GBfro1Ga7fK+8GHec1ls+iQfOy7Q+wj DnMvN93TOW0upnOOweK4SVmfFTzWtKu39yDOm5FPIiaOxhnlVPcCmSjX9hREPb5hbp5+ SHITLjGQTG16ISEaQRPxaQkc606sTaKjDyoZvfc/B35a8qmdKhf4lQpphND7/2UGoy8f xgi84WDCoUMCObaubKyuLw0X1SUZAFBJFlMVQrjo9CCPb1ebgWaOlQRp/k80YaiLlnek CgKw== X-Received: by 10.58.205.143 with SMTP id lg15mr2481005vec.13.1376487217205; Wed, 14 Aug 2013 06:33:37 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.134.74 with SMTP id pi10ls2747342qeb.35.gmail; Wed, 14 Aug 2013 06:33:37 -0700 (PDT) X-Received: by 10.52.89.197 with SMTP id bq5mr68358vdb.65.1376487217075; Wed, 14 Aug 2013 06:33:37 -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 ix2si11030362vdb.7.2013.08.14.06.33.37 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 14 Aug 2013 06:33:37 -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 g17so7692217vbg.28 for ; Wed, 14 Aug 2013 06:33:37 -0700 (PDT) X-Gm-Message-State: ALoCoQkICX8idCTjnCHZ52unwDtg/3s39cjhvjrxuwOlLq6RfwIT3qnhBX/9B8ogQZMWDDn/EXpJ X-Received: by 10.52.23.80 with SMTP id k16mr73183vdf.58.1376487216977; Wed, 14 Aug 2013 06:33:36 -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 u4csp213075vcz; Wed, 14 Aug 2013 06:33:36 -0700 (PDT) X-Received: by 10.68.98.101 with SMTP id eh5mr1162867pbb.65.1376487216173; Wed, 14 Aug 2013 06:33:36 -0700 (PDT) Received: from mail-pd0-f174.google.com (mail-pd0-f174.google.com [209.85.192.174]) by mx.google.com with ESMTPS id dw1si28216953pbc.336.2013.08.14.06.33.35 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 14 Aug 2013 06:33:36 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.192.174 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.192.174; Received: by mail-pd0-f174.google.com with SMTP id y13so6352914pdi.19 for ; Wed, 14 Aug 2013 06:33:35 -0700 (PDT) X-Received: by 10.66.240.140 with SMTP id wa12mr2009406pac.162.1376487215773; Wed, 14 Aug 2013 06:33:35 -0700 (PDT) Received: from localhost ([122.172.193.46]) by mx.google.com with ESMTPSA id qv4sm50366729pbc.16.2013.08.14.06.33.32 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 14 Aug 2013 06:33:35 -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 07/37] cpufreq: nforce2: don't initialize part of policy that is set by core too Date: Wed, 14 Aug 2013 19:01:56 +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.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/cpufreq-nforce2.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/cpufreq/cpufreq-nforce2.c b/drivers/cpufreq/cpufreq-nforce2.c index b83d45f..ef70de2 100644 --- a/drivers/cpufreq/cpufreq-nforce2.c +++ b/drivers/cpufreq/cpufreq-nforce2.c @@ -362,7 +362,6 @@ static int nforce2_cpu_init(struct cpufreq_policy *policy) policy->min = policy->cpuinfo.min_freq = min_fsb * fid * 100; policy->max = policy->cpuinfo.max_freq = max_fsb * fid * 100; policy->cpuinfo.transition_latency = CPUFREQ_ETERNAL; - policy->cur = nforce2_get(policy->cpu); return 0; }