From patchwork Fri Sep 13 13:00:58 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 2886951 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 0453A9F1BF for ; Fri, 13 Sep 2013 13:27:46 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6118620372 for ; Fri, 13 Sep 2013 13:27:41 +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 90D4F20214 for ; Fri, 13 Sep 2013 13:27:36 +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 1VKTOM-0002FX-O4; Fri, 13 Sep 2013 13:26:35 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VKTO3-0000BC-50; Fri, 13 Sep 2013 13:26:15 +0000 Received: from mail-pa0-f54.google.com ([209.85.220.54]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VKTEl-00079P-96 for linux-arm-kernel@lists.infradead.org; Fri, 13 Sep 2013 13:16:40 +0000 Received: by mail-pa0-f54.google.com with SMTP id kx10so2535189pab.27 for ; Fri, 13 Sep 2013 06:16:17 -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=4kXZJB9UrXeTRDYKzUWPlnviVNkKe1JA4+qhxma6D3E=; b=FvsE3FVGRkS4UbYviEa4mhEomq2rs7TXvXWAgaDsomwiA6uMJkn/6waTzkIkQxCl8U h5rFzOVapUm27Y1NhXTX3nqhi7uRQyrihfUag8CBBpjEBp4iiJ5CEC6TDQ0qIWXquGNB 1P4uQ+BOOKFkgoSlOIZzWq+kiR7kHoqoV3MDFOSIkR6S3cYULvLIOAJ4GEw6n79rY02B sKMlcHK9JMoo8vHGhkhd41kSGsYl+j/szmkZvLFaIHb6jlFJ4tVHtqDhD0zzwo5n+CMI 5mqJE9Ayi0IVyu22AAG8745z0I10/v2VpviFJtPmtdd5XrovHVmDPKcgcJnyY4H//1+9 XRcw== X-Gm-Message-State: ALoCoQnnpftI5o2hnpVn6EBlEav3+evtj2L7iHSeax77+TDZpwEiEKNqNCl1ghx9V/R76U+iCtUp X-Received: by 10.68.137.1 with SMTP id qe1mr13582476pbb.25.1379078177020; Fri, 13 Sep 2013 06:16:17 -0700 (PDT) Received: from localhost ([122.167.78.148]) by mx.google.com with ESMTPSA id kd1sm18023499pab.20.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:16:16 -0700 (PDT) From: Viresh Kumar To: rjw@sisk.pl Subject: [PATCH 112/228] cpufreq: p4: don't initialize part of policy that is set by core too Date: Fri, 13 Sep 2013 18:30:58 +0530 Message-Id: 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_091639_443862_9648759D X-CRM114-Status: GOOD ( 11.99 ) X-Spam-Score: -2.6 (--) Cc: linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org, Viresh Kumar , patches@linaro.org, linux-kernel@vger.kernel.org, cpufreq@vger.kernel.org, "David S. Miller" , 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: David S. Miller Signed-off-by: Viresh Kumar --- drivers/cpufreq/p4-clockmod.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/cpufreq/p4-clockmod.c b/drivers/cpufreq/p4-clockmod.c index 4fe6d4c..6164c1c 100644 --- a/drivers/cpufreq/p4-clockmod.c +++ b/drivers/cpufreq/p4-clockmod.c @@ -230,7 +230,6 @@ static int cpufreq_p4_cpu_init(struct cpufreq_policy *policy) /* the transition latency is set to be 1 higher than the maximum * transition latency of the ondemand governor */ policy->cpuinfo.transition_latency = 10000001; - policy->cur = stock_freq; return cpufreq_table_validate_and_show(policy, &p4clockmod_table[0]); }