From patchwork Wed Aug 14 13:32:12 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 19136 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 058762390D for ; Wed, 14 Aug 2013 13:35:44 +0000 (UTC) Received: by mail-qc0-f197.google.com with SMTP id s1sf10987622qcw.4 for ; Wed, 14 Aug 2013 06:35:43 -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=2ZwjDJhd9gsz/Ixg/ouIxGYdVIWkTHzR42tCrXprekE=; b=mDcrqATMEvEZWL/8fel20oi8ZuUczepXZ9Y4gXGKZUCQLd1zvcwRewT0KlD3E9QDhq cyiQG0yqYOSA1Q7tUh69luob5R3wELqUewLs8a1gKDxM+V+jXJON/BTFzERW9kQWAW8s qjAeht3fRYFZZWX++7tp5L5AHEwzh2RR+/AaThlWAi0aJTB/UkeFQwk2XG2c+UE1+6dP 65/a9Nt6gYIiIwxuUTQOITlaKUpOCPKvZE14vr4txlOXIUf843flkmSlrVKEPX8voyEb d8rZc3Wivy5SRnddXTRHkZzpvcPGa7ZdbVYex5l8Ko317hHSDRIkPuMnI0f+i1gNj7NL jplg== X-Received: by 10.58.100.239 with SMTP id fb15mr2492431veb.19.1376487343661; Wed, 14 Aug 2013 06:35:43 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.4.231 with SMTP id n7ls3056646qen.14.gmail; Wed, 14 Aug 2013 06:35:43 -0700 (PDT) X-Received: by 10.58.119.233 with SMTP id kx9mr9677519veb.3.1376487343539; Wed, 14 Aug 2013 06:35:43 -0700 (PDT) Received: from mail-vb0-f54.google.com (mail-vb0-f54.google.com [209.85.212.54]) by mx.google.com with ESMTPS id y4si11031749vcy.30.2013.08.14.06.35.43 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 14 Aug 2013 06:35:43 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.54 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.54; Received: by mail-vb0-f54.google.com with SMTP id q14so7688354vbe.27 for ; Wed, 14 Aug 2013 06:35:43 -0700 (PDT) X-Gm-Message-State: ALoCoQnMrEiSL7CUhOC7ow8dtoWYpoA4lFDT1PzffZqTmnqISuwdG+4wd0Rh91Oi+VfOrlBhE0M2 X-Received: by 10.221.51.206 with SMTP id vj14mr9747686vcb.17.1376487343461; Wed, 14 Aug 2013 06:35:43 -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 u4csp213203vcz; Wed, 14 Aug 2013 06:35:43 -0700 (PDT) X-Received: by 10.66.145.4 with SMTP id sq4mr9936464pab.46.1376487342681; Wed, 14 Aug 2013 06:35:42 -0700 (PDT) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx.google.com with ESMTPS id qn3si28269302pbc.152.2013.08.14.06.35.42 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 14 Aug 2013 06:35:42 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.54 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.160.54; Received: by mail-pb0-f54.google.com with SMTP id ro12so9411655pbb.27 for ; Wed, 14 Aug 2013 06:35:42 -0700 (PDT) X-Received: by 10.66.251.40 with SMTP id zh8mr1049615pac.185.1376487342148; Wed, 14 Aug 2013 06:35:42 -0700 (PDT) Received: from localhost ([122.172.193.46]) by mx.google.com with ESMTPSA id 7sm53359866paf.22.2013.08.14.06.35.38 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 14 Aug 2013 06:35:41 -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 , "David S. Miller" Subject: [PATCH 23/37] cpufreq: p4: don't initialize part of policy that is set by core too Date: Wed, 14 Aug 2013 19:02:12 +0530 Message-Id: <89c8a7b58cbbf991eda016b191f7196db200eef4.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.212.54 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: 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 5a6263e..3c23053 100644 --- a/drivers/cpufreq/p4-clockmod.c +++ b/drivers/cpufreq/p4-clockmod.c @@ -220,7 +220,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]); }