From patchwork Fri Sep 13 13:00:43 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 20151 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 D6CFC20358 for ; Fri, 13 Sep 2013 13:14:36 +0000 (UTC) Received: by mail-qe0-f69.google.com with SMTP id 1sf1216817qec.4 for ; Fri, 13 Sep 2013 06:14:36 -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=iTbhrtciSFTb0NrpK+Q3OQIxn8pGmKSQbmxM2cPw4uQ=; b=nMrFPWtTlOHmL4JsEwcsEW2kQNFPx0lhFfVjuzpXrdtpux72LUkiN4/jlLash0AOI2 XNfhqFEMJnFtLsc842/BNHxGj1TYZ6U+0nLfUGAbxVaPPlUnI8QQ5mD6deawim2VvGcF 9/5xIxfRFWy+vh2Tapg7w3pBsnEb8e8pFBbnKrL6A9sYVKm9K3QWh4SYpGKyewlkUjii qUQJjmlQGHGZPOXZ2VoLi1x1AdtURFGzLuzdf97pkpASrz9f7rE3t2rvZ+mhgqbkXDx/ jPmBWdBrIjXNDWJ5H5rBsrbTMkIn0IGqnJJQ+Vkg0n6xZc6qD3Hj7M+sgu12wx2vKJ+b 6SGw== X-Gm-Message-State: ALoCoQlYuBLaDGMep+H4ddQKAggCK5k2U6RzT+RIqz7rJkS+0xdzx+muKpbzA9+CP+jIJO8m51Uw X-Received: by 10.236.145.34 with SMTP id o22mr5170062yhj.22.1379078076693; Fri, 13 Sep 2013 06:14:36 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.85.200 with SMTP id j8ls1120037qez.6.gmail; Fri, 13 Sep 2013 06:14:36 -0700 (PDT) X-Received: by 10.58.171.4 with SMTP id aq4mr1611879vec.26.1379078076471; Fri, 13 Sep 2013 06:14:36 -0700 (PDT) Received: from mail-ve0-f175.google.com (mail-ve0-f175.google.com [209.85.128.175]) by mx.google.com with ESMTPS id tm8si3107546vdc.46.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:14:36 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.175 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.175; Received: by mail-ve0-f175.google.com with SMTP id jy13so934764veb.34 for ; Fri, 13 Sep 2013 06:14:36 -0700 (PDT) X-Received: by 10.52.122.68 with SMTP id lq4mr10110779vdb.21.1379078076375; Fri, 13 Sep 2013 06:14: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 u4csp80012vcz; Fri, 13 Sep 2013 06:14:35 -0700 (PDT) X-Received: by 10.66.27.143 with SMTP id t15mr2038579pag.171.1379078075026; Fri, 13 Sep 2013 06:14:35 -0700 (PDT) Received: from mail-pa0-f51.google.com (mail-pa0-f51.google.com [209.85.220.51]) by mx.google.com with ESMTPS id gl2si7407216pbc.288.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:14:34 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.51 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.220.51; Received: by mail-pa0-f51.google.com with SMTP id lf1so2535839pab.10 for ; Fri, 13 Sep 2013 06:14:29 -0700 (PDT) X-Received: by 10.68.50.106 with SMTP id b10mr13530580pbo.152.1379078069363; Fri, 13 Sep 2013 06:14:29 -0700 (PDT) Received: from localhost ([122.167.78.148]) by mx.google.com with ESMTPSA id ha10sm11700660pbc.23.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:14:28 -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 , Jesper Nilsson , Mikael Starvik , linux-cris-kernel@axis.com Subject: [PATCH 097/228] cpufreq: cris: don't initialize part of policy that is set by core too Date: Fri, 13 Sep 2013 18:30:43 +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.128.175 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(). Cc: Jesper Nilsson Cc: Mikael Starvik Cc: linux-cris-kernel@axis.com Signed-off-by: Viresh Kumar Acked-by: Jesper Nilsson --- drivers/cpufreq/cris-artpec3-cpufreq.c | 1 - drivers/cpufreq/cris-etraxfs-cpufreq.c | 1 - 2 files changed, 2 deletions(-) diff --git a/drivers/cpufreq/cris-artpec3-cpufreq.c b/drivers/cpufreq/cris-artpec3-cpufreq.c index d26f4e4..4d88e4f 100644 --- a/drivers/cpufreq/cris-artpec3-cpufreq.c +++ b/drivers/cpufreq/cris-artpec3-cpufreq.c @@ -73,7 +73,6 @@ static int cris_freq_cpu_init(struct cpufreq_policy *policy) { /* cpuinfo and default policy values */ policy->cpuinfo.transition_latency = 1000000; /* 1ms */ - policy->cur = cris_freq_get_cpu_frequency(0); return cpufreq_table_validate_and_show(policy, cris_freq_table); } diff --git a/drivers/cpufreq/cris-etraxfs-cpufreq.c b/drivers/cpufreq/cris-etraxfs-cpufreq.c index d384e63..f7d2d49 100644 --- a/drivers/cpufreq/cris-etraxfs-cpufreq.c +++ b/drivers/cpufreq/cris-etraxfs-cpufreq.c @@ -72,7 +72,6 @@ static int cris_freq_cpu_init(struct cpufreq_policy *policy) { /* cpuinfo and default policy values */ policy->cpuinfo.transition_latency = 1000000; /* 1ms */ - policy->cur = cris_freq_get_cpu_frequency(0); return cpufreq_table_validate_and_show(policy, cris_freq_table); }