From patchwork Wed Aug 14 13:31:51 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 19115 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 006812390D for ; Wed, 14 Aug 2013 13:33:02 +0000 (UTC) Received: by mail-ve0-f199.google.com with SMTP id m1sf10776483ves.6 for ; Wed, 14 Aug 2013 06:33:02 -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=CRxUDc/hwP3bayZbnKm71EwAisBk4FJzqAhyD5Fy3qI=; b=n7pj6za/u4PSfqd583ZElbybA4BZds2gl4GqVwUp683AxOQr0h2BdRiQ05iBVBl2GH u9NLZT7wS7HVz/+9yLD8dHuxPaQnIvw2WgSejwk3c9UysxgJj+hWSazA3F87aCBzG7d2 f8dft59V+TR0clwQy69ih24Pt5GeaZ10hem9vESgvHE/OT8ddH4yXBPz2pdkOd5SpHPl sv0PdEECmgxTTUNypF3wiWQ8BcMJdWj1O32rMxWFScunffIvyVgDayxBch8+4pEG1/yf n9bDLP35P4wBEaCKJqBcMA0gyf+zQbMB5EZVGRk6cfIe/zdGRoLp5gaX3/QYfn5xmV1/ fEyg== X-Received: by 10.52.164.45 with SMTP id yn13mr2148201vdb.5.1376487182562; Wed, 14 Aug 2013 06:33:02 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.70.228 with SMTP id p4ls3265436qeu.43.gmail; Wed, 14 Aug 2013 06:33:02 -0700 (PDT) X-Received: by 10.220.58.5 with SMTP id e5mr78379vch.52.1376487182260; Wed, 14 Aug 2013 06:33:02 -0700 (PDT) Received: from mail-vb0-f53.google.com (mail-vb0-f53.google.com [209.85.212.53]) by mx.google.com with ESMTPS id ae9si11017346vdc.132.2013.08.14.06.33.02 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 14 Aug 2013 06:33:02 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.53 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.53; Received: by mail-vb0-f53.google.com with SMTP id i3so7638959vbh.12 for ; Wed, 14 Aug 2013 06:33:02 -0700 (PDT) X-Gm-Message-State: ALoCoQnRVbV8ifl0XYIxpiNl3w3juN8UlKH2AR34aIR6B6JnJesJzSCQqoNna3nu3u/Pwrjm9i7Q X-Received: by 10.52.186.8 with SMTP id fg8mr80187vdc.53.1376487182162; Wed, 14 Aug 2013 06:33:02 -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 u4csp213038vcz; Wed, 14 Aug 2013 06:33:01 -0700 (PDT) X-Received: by 10.66.121.234 with SMTP id ln10mr9758479pab.20.1376487181352; Wed, 14 Aug 2013 06:33:01 -0700 (PDT) Received: from mail-pd0-f175.google.com (mail-pd0-f175.google.com [209.85.192.175]) by mx.google.com with ESMTPS id y8si29396047pax.122.2013.08.14.06.33.00 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 14 Aug 2013 06:33:01 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.192.175 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.192.175; Received: by mail-pd0-f175.google.com with SMTP id q10so6312662pdj.6 for ; Wed, 14 Aug 2013 06:33:00 -0700 (PDT) X-Received: by 10.66.246.225 with SMTP id xz1mr1321829pac.110.1376487180521; Wed, 14 Aug 2013 06:33:00 -0700 (PDT) Received: from localhost ([122.172.193.46]) by mx.google.com with ESMTPSA id ll5sm53350641pab.19.2013.08.14.06.32.56 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 14 Aug 2013 06:32:59 -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 02/37] cpufreq: acpi: don't initialize part of policy that is set by core too Date: Wed, 14 Aug 2013 19:01:51 +0530 Message-Id: <19546da27c902ea7f2b376acace9c08be84f3ac5.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.53 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/acpi-cpufreq.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/cpufreq/acpi-cpufreq.c b/drivers/cpufreq/acpi-cpufreq.c index 324e061..7536e7d 100644 --- a/drivers/cpufreq/acpi-cpufreq.c +++ b/drivers/cpufreq/acpi-cpufreq.c @@ -833,7 +833,6 @@ static int acpi_cpufreq_cpu_init(struct cpufreq_policy *policy) break; case ACPI_ADR_SPACE_FIXED_HARDWARE: acpi_cpufreq_driver.get = get_cur_freq_on_cpu; - policy->cur = get_cur_freq_on_cpu(cpu); break; default: break;