From patchwork Fri Sep 13 13:00:55 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 20163 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vb0-f69.google.com (mail-vb0-f69.google.com [209.85.212.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 6AA4920358 for ; Fri, 13 Sep 2013 13:15:58 +0000 (UTC) Received: by mail-vb0-f69.google.com with SMTP id e13sf1200957vbg.4 for ; Fri, 13 Sep 2013 06:15:58 -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=fZttqZb/baDlHDGcE7drNscG02kHocs40nScaT6bIdk=; b=jCyF6mLl2C9Zgb7MQD7cRaRkZtFO8RuDaRUqNA+0byobj1wROOs7UycbYGMzcqAi6p W4DVLitYhG3ZNzbum4NuTOZZA6AFXoNP4c8C5K4k1IeLBvu6tNsTcKGIr/muHpghVxb1 J3eb5BnriaMq5SdSDBAqAUVpH4Do1grUfnZILZpqhdfgcwrKW3hNkhCo19wZeI+QkXrQ FtvNnEegApuqyaBJbSAty7gDMNveqw7uEGa/C2eTM/5exgavhl6qGPDkR12zJGTlzHGz rIJ/Mpmftg0DdwehNSSEIyrMMacNqqkt29Nvir55/Asdb3mKO1nEZKQ0RIt6fi+eBZYX Fvmg== X-Gm-Message-State: ALoCoQkgsHbiB7idEpfT4uZiiKfy1vMAzP9CUUqYP7yf5aYMawXSNJgrHXYz7TUgWtrR2AS+05PJ X-Received: by 10.236.198.197 with SMTP id v45mr5033393yhn.26.1379078158178; Fri, 13 Sep 2013 06:15:58 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.121.164 with SMTP id ll4ls1075479qeb.17.gmail; Fri, 13 Sep 2013 06:15:58 -0700 (PDT) X-Received: by 10.58.67.101 with SMTP id m5mr764463vet.29.1379078157964; Fri, 13 Sep 2013 06:15:57 -0700 (PDT) Received: from mail-vc0-f182.google.com (mail-vc0-f182.google.com [209.85.220.182]) by mx.google.com with ESMTPS id bb4si3127438vcb.0.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:15:57 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.182 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.182; Received: by mail-vc0-f182.google.com with SMTP id hf12so911652vcb.13 for ; Fri, 13 Sep 2013 06:15:57 -0700 (PDT) X-Received: by 10.221.44.136 with SMTP id ug8mr11952418vcb.13.1379078157871; Fri, 13 Sep 2013 06:15:57 -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 u4csp80078vcz; Fri, 13 Sep 2013 06:15:57 -0700 (PDT) X-Received: by 10.66.27.143 with SMTP id t15mr2045275pag.171.1379078156225; Fri, 13 Sep 2013 06:15:56 -0700 (PDT) Received: from mail-pb0-f52.google.com (mail-pb0-f52.google.com [209.85.160.52]) by mx.google.com with ESMTPS id is7si7394438pbc.359.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:15:56 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.52 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.160.52; Received: by mail-pb0-f52.google.com with SMTP id wz12so1214111pbc.25 for ; Fri, 13 Sep 2013 06:15:55 -0700 (PDT) X-Received: by 10.68.197.229 with SMTP id ix5mr1577505pbc.203.1379078155843; Fri, 13 Sep 2013 06:15:55 -0700 (PDT) Received: from localhost ([122.167.78.148]) by mx.google.com with ESMTPSA id u7sm11720999pbf.12.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:15:55 -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 , John Crispin Subject: [PATCH 109/228] cpufreq: loongson2: don't initialize part of policy that is set by core too Date: Fri, 13 Sep 2013 18:30:55 +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.220.182 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 ed7fbe2..dd4f3e4 100644 --- a/drivers/cpufreq/loongson2_cpufreq.c +++ b/drivers/cpufreq/loongson2_cpufreq.c @@ -131,8 +131,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]); }