From patchwork Wed Aug 14 13:31:57 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 19121 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 83FE72390D for ; Wed, 14 Aug 2013 13:33:45 +0000 (UTC) Received: by mail-vc0-f198.google.com with SMTP id ht10sf4505711vcb.5 for ; Wed, 14 Aug 2013 06:33:45 -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=f5DJgprwhwryzo9bhDAOwQm+mtviWHJ0BnflCbf0Hkg=; b=EVe2Bvi2MBMNtPi1YpasjJ97C1N+akyAvmffn5aynpFmi0aPdXDsgzQPnV2BtWdtmt ZFnbWReg+DVGaw/jrXJ+EN0MaFQMyI8L8r1GiURbgao/s5AqRbFCjzPazg0VGJ/wBJ83 7aUvjGtUJ8rA/pEWlWFuzIev5GqNwZm7DeqVCTqSbqimDyajHHlu+Scv/5HNCi0hdqrj 7T2/hnlqkxTHydtiGAdMw2/5vTOOKiJB3HNGuIyW89PoL9SW6p3+Re5m7F0GdXYLCFi7 G6jP8Zr5ff+pvSo405XChDwxkRhHSgpYuSEUC1nVj5AgJOk1Ll6LSF6ge2IIzXRNLh0J aKMA== X-Received: by 10.52.100.164 with SMTP id ez4mr1819465vdb.7.1376487225082; Wed, 14 Aug 2013 06:33:45 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.127.111 with SMTP id nf15ls3294631qeb.2.gmail; Wed, 14 Aug 2013 06:33:44 -0700 (PDT) X-Received: by 10.52.229.35 with SMTP id sn3mr62963vdc.70.1376487224917; Wed, 14 Aug 2013 06:33:44 -0700 (PDT) Received: from mail-vc0-f178.google.com (mail-vc0-f178.google.com [209.85.220.178]) by mx.google.com with ESMTPS id f20si11026054vcs.67.2013.08.14.06.33.44 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 14 Aug 2013 06:33:44 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.178 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.178; Received: by mail-vc0-f178.google.com with SMTP id ha12so5092812vcb.37 for ; Wed, 14 Aug 2013 06:33:44 -0700 (PDT) X-Gm-Message-State: ALoCoQmMNzrsFrEuLcp4xFlSZXfFHUBSt0uaGPR/VMWN+Th/fR6gqh2y3OeRFVWpKyOCMgVBSAF5 X-Received: by 10.52.229.35 with SMTP id sn3mr62958vdc.70.1376487224826; Wed, 14 Aug 2013 06:33:44 -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 u4csp213080vcz; Wed, 14 Aug 2013 06:33:44 -0700 (PDT) X-Received: by 10.68.239.168 with SMTP id vt8mr9959047pbc.125.1376487223960; Wed, 14 Aug 2013 06:33:43 -0700 (PDT) Received: from mail-pd0-f181.google.com (mail-pd0-f181.google.com [209.85.192.181]) by mx.google.com with ESMTPS id xy3si779830pbb.44.2013.08.14.06.33.43 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 14 Aug 2013 06:33:43 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.192.181 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.192.181; Received: by mail-pd0-f181.google.com with SMTP id g10so6380557pdj.12 for ; Wed, 14 Aug 2013 06:33:43 -0700 (PDT) X-Received: by 10.68.221.138 with SMTP id qe10mr9972263pbc.103.1376487223566; Wed, 14 Aug 2013 06:33:43 -0700 (PDT) Received: from localhost ([122.172.193.46]) by mx.google.com with ESMTPSA id yk10sm53359950pac.16.2013.08.14.06.33.39 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 14 Aug 2013 06:33:42 -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 , Jesper Nilsson , Mikael Starvik , linux-cris-kernel@axis.com Subject: [PATCH 08/37] cpufreq: cris: don't initialize part of policy that is set by core too Date: Wed, 14 Aug 2013 19:01:57 +0530 Message-Id: <7058b9f50de83553530460cc9488db0e1230ed86.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.220.178 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 --- 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 1488277..dace19d 100644 --- a/drivers/cpufreq/cris-artpec3-cpufreq.c +++ b/drivers/cpufreq/cris-artpec3-cpufreq.c @@ -59,7 +59,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 4e3e9c7..4d40d9df 100644 --- a/drivers/cpufreq/cris-etraxfs-cpufreq.c +++ b/drivers/cpufreq/cris-etraxfs-cpufreq.c @@ -59,7 +59,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); }