From patchwork Fri Sep 13 13:00:52 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 2890431 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 88EEC9F1C0 for ; Fri, 13 Sep 2013 16:02:18 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D666520318 for ; Fri, 13 Sep 2013 16:02:13 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 58321202F7 for ; Fri, 13 Sep 2013 16:02:12 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VKTN6-0001Ne-1W; Fri, 13 Sep 2013 13:25:16 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VKTMo-0008Pc-5J; Fri, 13 Sep 2013 13:24:58 +0000 Received: from mail-pa0-f52.google.com ([209.85.220.52]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VKTE3-00073Q-Vr for linux-arm-kernel@lists.infradead.org; Fri, 13 Sep 2013 13:15:57 +0000 Received: by mail-pa0-f52.google.com with SMTP id kq13so2510937pab.11 for ; Fri, 13 Sep 2013 06:15:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=JGP7i9TYg+ctvYJ1UxljrBXdcPNCSRhNazmvYxIY/ws=; b=VDBCmMPuLTT8UzT5+tO3RPtEPA6yBQtpSsec5c6fmQnxrLofooud3oG22Rm3Lg18yu SE7iyIAt8SGOjrTKwg04wj9Li3gO/mYSPx3756alYhQ9PSWh6nAr15Nun46cwdrvoICW avgN+ZTVW0XtmtmogVf9DxhOP44y7oHWaC4k8jNJVk0f6SLNeFS9waJ39s5mUH1k0Mf0 JZgVBvt+/hZJkO8L6aoqzex1VDItf6K3XKUSFAPGFDiVnQje+LmeX0uCIibpHZZuNA/G tR3X+4a784rboTrrsYy6IoHQIEmHpNVl95/VDR6f3eZ2eIG1atw6qaw6c+OtQ30maIAk Xgbw== X-Gm-Message-State: ALoCoQmWPT2qwo4HVVjkEzzH7bGa5hTegFRGGKbE7s6RgOB29x7KpvWK7GncdI7IdV5jQdCPwnSf X-Received: by 10.68.98.36 with SMTP id ef4mr13471098pbb.27.1379078134676; Fri, 13 Sep 2013 06:15:34 -0700 (PDT) Received: from localhost ([122.167.78.148]) by mx.google.com with ESMTPSA id gg10sm11680853pbc.46.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:15:34 -0700 (PDT) From: Viresh Kumar To: rjw@sisk.pl Subject: [PATCH 106/228] cpufreq: integrator: don't initialize part of policy that is set by core too Date: Fri, 13 Sep 2013 18:30:52 +0530 Message-Id: <6d8d406ebca886e5147191cc8c333d926ef9eb30.1379063063.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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130913_091556_165704_B9BCDE77 X-CRM114-Status: GOOD ( 11.03 ) X-Spam-Score: -2.6 (--) Cc: linaro-kernel@lists.linaro.org, Russell King , linux-pm@vger.kernel.org, Viresh Kumar , patches@linaro.org, linux-kernel@vger.kernel.org, cpufreq@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-5.1 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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(). Cc: Russell King Signed-off-by: Viresh Kumar Signed-off-by: Viresh Kumar --- drivers/cpufreq/integrator-cpufreq.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/cpufreq/integrator-cpufreq.c b/drivers/cpufreq/integrator-cpufreq.c index 8152a9b..babf3e4 100644 --- a/drivers/cpufreq/integrator-cpufreq.c +++ b/drivers/cpufreq/integrator-cpufreq.c @@ -181,10 +181,9 @@ static int integrator_cpufreq_init(struct cpufreq_policy *policy) { /* set default policy and cpuinfo */ - policy->cpuinfo.max_freq = 160000; - policy->cpuinfo.min_freq = 12000; + policy->max = policy->cpuinfo.max_freq = 160000; + policy->min = policy->cpuinfo.min_freq = 12000; policy->cpuinfo.transition_latency = 1000000; /* 1 ms, assumed */ - policy->cur = policy->min = policy->max = integrator_get(policy->cpu); return 0; }