From patchwork Fri Sep 13 13:00:37 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 20145 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vc0-f198.google.com (mail-vc0-f198.google.com [209.85.220.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id D851620358 for ; Fri, 13 Sep 2013 13:13:48 +0000 (UTC) Received: by mail-vc0-f198.google.com with SMTP id ht10sf1192566vcb.5 for ; Fri, 13 Sep 2013 06:13:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version: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=51of3aFG69e+aurTRZqRNtrLYlnWjNnObgjacIiRDUw=; b=YAXJptFaM7VSw5mSplIl9hLgLem1jVp/0oYl/RKbHNRRNzrUmaCUjksyW66SLplCmx V8jtklinQB1c+raw/kXNRQ7GP0ABgWsFh6KyuW7FnkKlxJy/10hRqt4ugezebbR2QTvf JZYjiJa4PHVdSUFKHMOXQnmHNmcAgtK6QYcsTLlGHIVpeoqOq3GD1re5uu7PlI4n2Hmr E/+xur5tkurp0xfsmnJ+IrdZYqDg5Gm+fRsFN1JHyNvDVtaKzuF7ZaQarzb2dIyEGgJo tfxLgPkOHloPDZmAm4ziv8z7/racErEPOwJovohqNj6LkK/L5L1XVz+JJq7KB2/BaOsE kM0Q== X-Gm-Message-State: ALoCoQkhJdERRzhmuLLaNHROM8ut+MkeH0m0iOhuklnWKxkI2KN5ex0h6n4Fm6sMDjY5neMJvEvk X-Received: by 10.236.63.165 with SMTP id a25mr4984605yhd.43.1379078028637; Fri, 13 Sep 2013 06:13:48 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.42.39 with SMTP id k7ls1118805qel.52.gmail; Fri, 13 Sep 2013 06:13:48 -0700 (PDT) X-Received: by 10.220.173.134 with SMTP id p6mr30281vcz.36.1379078028400; Fri, 13 Sep 2013 06:13:48 -0700 (PDT) Received: from mail-vc0-f171.google.com (mail-vc0-f171.google.com [209.85.220.171]) by mx.google.com with ESMTPS id j6si3120207vet.17.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:13:48 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.171 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.171; Received: by mail-vc0-f171.google.com with SMTP id ij15so900723vcb.16 for ; Fri, 13 Sep 2013 06:13:48 -0700 (PDT) X-Received: by 10.58.133.66 with SMTP id pa2mr11838451veb.18.1379078028329; Fri, 13 Sep 2013 06:13:48 -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 u4csp79969vcz; Fri, 13 Sep 2013 06:13:47 -0700 (PDT) X-Received: by 10.68.50.106 with SMTP id b10mr13527160pbo.152.1379078027451; Fri, 13 Sep 2013 06:13:47 -0700 (PDT) Received: from mail-pb0-f44.google.com (mail-pb0-f44.google.com [209.85.160.44]) by mx.google.com with ESMTPS id ul8si7402269pbc.297.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:13:47 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.44 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.160.44; Received: by mail-pb0-f44.google.com with SMTP id xa7so1222238pbc.17 for ; Fri, 13 Sep 2013 06:13:47 -0700 (PDT) X-Received: by 10.68.212.37 with SMTP id nh5mr13550417pbc.16.1379078027065; Fri, 13 Sep 2013 06:13:47 -0700 (PDT) Received: from localhost ([122.167.78.148]) by mx.google.com with ESMTPSA id m4sm9201357pbg.38.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:13:46 -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, linux-arm-kernel@lists.infradead.org, Viresh Kumar Subject: [PATCH 091/228] cpufreq: acpi: don't initialize part of policy that is set by core too Date: Fri, 13 Sep 2013 18:30:37 +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.220.171 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 d67023d..372febf 100644 --- a/drivers/cpufreq/acpi-cpufreq.c +++ b/drivers/cpufreq/acpi-cpufreq.c @@ -842,7 +842,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;