From patchwork Fri Sep 13 13:00:58 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 20166 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qe0-f72.google.com (mail-qe0-f72.google.com [209.85.128.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id E37A020358 for ; Fri, 13 Sep 2013 13:16:18 +0000 (UTC) Received: by mail-qe0-f72.google.com with SMTP id 6sf1223916qea.3 for ; Fri, 13 Sep 2013 06:16:18 -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=4kXZJB9UrXeTRDYKzUWPlnviVNkKe1JA4+qhxma6D3E=; b=Qyu6VnaRVRMHbSJBEKgYFOKMQcfBuFf9G/F9umQKe6lQ9VNAa0ayeq0ERak6/YmqKX K0/MZUSLtlCo1uSzVQqoOu64+tzq1MwelLT8U9LEK+awnPBerqYqrvO8gNjQPrzA8El2 ARzXcshnXZMZ37k99qonkZ89ey0JI4ubY/uxbMDt+w8edSWNvLbW8gZ4apG9dF11hwGZ e1N9mLIGI8q4QuLpI93Cn8qSusN7/ZAQTdlysIrMbJ9ROmm/G6xCoiw6U0mHitusNXD+ 1A0mRQwxwVOxp1CP4K7MlvuDsuxaA2DSUBv3OiJDOIDJTa8L4O54EFIjwDzQWvfj5uaf P1kg== X-Gm-Message-State: ALoCoQlu4HVF37RscyDYMowGblXQw2+i8KUjc/gRBgA7fThVPsfpqQVzdkvSw48gZCAAQuJLfZnP X-Received: by 10.236.108.233 with SMTP id q69mr5009564yhg.11.1379078178733; Fri, 13 Sep 2013 06:16:18 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.97.66 with SMTP id dy2ls1238621qeb.85.gmail; Fri, 13 Sep 2013 06:16:18 -0700 (PDT) X-Received: by 10.52.74.100 with SMTP id s4mr630286vdv.35.1379078178521; Fri, 13 Sep 2013 06:16:18 -0700 (PDT) Received: from mail-ve0-f180.google.com (mail-ve0-f180.google.com [209.85.128.180]) by mx.google.com with ESMTPS id oh2si3125352vcb.10.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:16:18 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.180 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.180; Received: by mail-ve0-f180.google.com with SMTP id jz11so912873veb.25 for ; Fri, 13 Sep 2013 06:16:18 -0700 (PDT) X-Received: by 10.52.122.68 with SMTP id lq4mr10116475vdb.21.1379078178435; Fri, 13 Sep 2013 06:16:18 -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 u4csp80093vcz; Fri, 13 Sep 2013 06:16:17 -0700 (PDT) X-Received: by 10.68.200.100 with SMTP id jr4mr13647169pbc.0.1379078177584; Fri, 13 Sep 2013 06:16:17 -0700 (PDT) Received: from mail-pd0-f180.google.com (mail-pd0-f180.google.com [209.85.192.180]) by mx.google.com with ESMTPS id z1si11250856pab.15.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:16:17 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.192.180 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.192.180; Received: by mail-pd0-f180.google.com with SMTP id y10so1231896pdj.25 for ; Fri, 13 Sep 2013 06:16:17 -0700 (PDT) X-Received: by 10.68.137.1 with SMTP id qe1mr13582476pbb.25.1379078177020; Fri, 13 Sep 2013 06:16:17 -0700 (PDT) Received: from localhost ([122.167.78.148]) by mx.google.com with ESMTPSA id kd1sm18023499pab.20.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:16:16 -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 , "David S. Miller" Subject: [PATCH 112/228] cpufreq: p4: don't initialize part of policy that is set by core too Date: Fri, 13 Sep 2013 18:30:58 +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.180 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 4fe6d4c..6164c1c 100644 --- a/drivers/cpufreq/p4-clockmod.c +++ b/drivers/cpufreq/p4-clockmod.c @@ -230,7 +230,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]); }