From patchwork Wed Aug 14 13:32:09 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 19133 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f197.google.com (mail-qc0-f197.google.com [209.85.216.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 0C78B2390D for ; Wed, 14 Aug 2013 13:35:23 +0000 (UTC) Received: by mail-qc0-f197.google.com with SMTP id s1sf10987227qcw.4 for ; Wed, 14 Aug 2013 06:35:22 -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=y/b5YndU9eC8YYsHdhih1uUpvXzvSStpSwH0Y+Styzw=; b=Bu4dVDqnuq6p6qQOFEC6kUQXi+fYRTb4fC/ILX8yJyI4fI8YKUp8xBrWuXSjfMGNag TnR+70OwWo41wBw6dqxvgo3pLUlmdhza+brUkP9T2p8jNjzrHIVx3EiMn+gG0X/V1EQl /rNFy2VIDC6SDtvWjAL7or5O23ZQ8agt/8XtgfYrd2AfYkUX8hmou23L6DSQwvd0XBMT DG1XRG/qC9cd1CFOPInkXqWA1hodZx/XZyqQ66tKZTLo+4ICuCuwY/zzjUwrzsdgxL6d hRYDtlsWURn7K6UKZAYkRzdpkTMQGu40n0Ko2cf5CZa9mcwf73L6RnLzYk3ioe8/R0Gi 6d1g== X-Received: by 10.58.96.77 with SMTP id dq13mr2485949veb.2.1376487322704; Wed, 14 Aug 2013 06:35:22 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.2.3 with SMTP id 3ls3194007qeq.83.gmail; Wed, 14 Aug 2013 06:35:22 -0700 (PDT) X-Received: by 10.221.44.136 with SMTP id ug8mr9685678vcb.13.1376487322624; Wed, 14 Aug 2013 06:35:22 -0700 (PDT) Received: from mail-vc0-f173.google.com (mail-vc0-f173.google.com [209.85.220.173]) by mx.google.com with ESMTPS id c13si11035003veu.1.2013.08.14.06.35.22 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 14 Aug 2013 06:35:22 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.173 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.173; Received: by mail-vc0-f173.google.com with SMTP id id13so5123315vcb.32 for ; Wed, 14 Aug 2013 06:35:22 -0700 (PDT) X-Gm-Message-State: ALoCoQk7PYn3dfBUCQL2ZNklNQ169Gk/n5iP+Cd9dn83FfjOY2FoZPOShpVSmop4kYuHaoW5xC8/ X-Received: by 10.58.118.70 with SMTP id kk6mr9630592veb.1.1376487322494; Wed, 14 Aug 2013 06:35:22 -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 u4csp213180vcz; Wed, 14 Aug 2013 06:35:22 -0700 (PDT) X-Received: by 10.68.211.194 with SMTP id ne2mr10089118pbc.40.1376487321693; Wed, 14 Aug 2013 06:35:21 -0700 (PDT) Received: from mail-pa0-f41.google.com (mail-pa0-f41.google.com [209.85.220.41]) by mx.google.com with ESMTPS id ie10si28252105pbc.221.2013.08.14.06.35.21 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 14 Aug 2013 06:35:21 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.41 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.220.41; Received: by mail-pa0-f41.google.com with SMTP id bj1so10138877pad.14 for ; Wed, 14 Aug 2013 06:35:21 -0700 (PDT) X-Received: by 10.66.158.196 with SMTP id ww4mr1362125pab.57.1376487321205; Wed, 14 Aug 2013 06:35:21 -0700 (PDT) Received: from localhost ([122.172.193.46]) by mx.google.com with ESMTPSA id a5sm50391511pbw.4.2013.08.14.06.35.17 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 14 Aug 2013 06:35:20 -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 , John Crispin Subject: [PATCH 20/37] cpufreq: loongson2: don't initialize part of policy that is set by core too Date: Wed, 14 Aug 2013 19:02:09 +0530 Message-Id: <0aeda104b4908444782646cb7ee4c7cddfa659fc.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.173 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: John Crispin Signed-off-by: Viresh Kumar --- drivers/cpufreq/loongson2_cpufreq.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/cpufreq/loongson2_cpufreq.c b/drivers/cpufreq/loongson2_cpufreq.c index 009c29c..c33347c 100644 --- a/drivers/cpufreq/loongson2_cpufreq.c +++ b/drivers/cpufreq/loongson2_cpufreq.c @@ -120,8 +120,6 @@ static int loongson2_cpufreq_cpu_init(struct cpufreq_policy *policy) return ret; } - policy->cur = loongson2_cpufreq_get(policy->cpu); - return cpufreq_table_validate_and_show(policy, &loongson2_clockmod_table[0]); }