From patchwork Tue Aug 13 13:31:06 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 19054 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vc0-f199.google.com (mail-vc0-f199.google.com [209.85.220.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 37B0A246B8 for ; Tue, 13 Aug 2013 13:31:38 +0000 (UTC) Received: by mail-vc0-f199.google.com with SMTP id gf11sf5875818vcb.2 for ; Tue, 13 Aug 2013 06:31:37 -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=V9mf6BDnFW3uufBzoIfRw/xowf1Apj9eTOkqSlQLo04=; b=BpNK4Spm1j8aZ66D0adz+22B1dEfb0l3oDNDVUvE10MPpeHeQRzOS2FRfXc+tiRnSh ocEcppZ+PknSqHStDAe4pOMKQazD/Lj8iIlW/EQn3LwZ64u/GBbMJ0hRQt66yD1DRy6g 4l5V37PRrlWHJKNAgwe3aLvAyZkgyuna3BE8tYYMitQcNWAZBA/f7V//i0/hpGSaDdiu zMZOqLtuq6cn/av9qNXYFtcrKIedwjeGPo6w5534AaREq3bDzAe6AUlfeBNyU2MSas/g vG6WglLae2zDO26jjh/R/8I2ofxtVBOVaG8UEVBwEeEKVC5doeI7TcuzgnHziASChCxI 0Jrw== X-Received: by 10.236.180.41 with SMTP id i29mr1640758yhm.1.1376400697676; Tue, 13 Aug 2013 06:31:37 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.130.196 with SMTP id og4ls2742569qeb.69.gmail; Tue, 13 Aug 2013 06:31:37 -0700 (PDT) X-Received: by 10.58.217.167 with SMTP id oz7mr4459774vec.15.1376400697472; Tue, 13 Aug 2013 06:31:37 -0700 (PDT) Received: from mail-ve0-f181.google.com (mail-ve0-f181.google.com [209.85.128.181]) by mx.google.com with ESMTPS id ae9si9745172vdc.41.2013.08.13.06.31.37 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 13 Aug 2013 06:31:37 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.181 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.181; Received: by mail-ve0-f181.google.com with SMTP id jz10so6550247veb.26 for ; Tue, 13 Aug 2013 06:31:37 -0700 (PDT) X-Gm-Message-State: ALoCoQnEDZiPIyJL+J95FsFJlnuvnqDTQNWCwGXjwRK3dkCUM7VbGwbvT1MvVwNhGdpDExI3fMH0 X-Received: by 10.58.152.3 with SMTP id uu3mr4459531veb.16.1376400697344; Tue, 13 Aug 2013 06:31:37 -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 u4csp154021vcz; Tue, 13 Aug 2013 06:31:36 -0700 (PDT) X-Received: by 10.68.107.226 with SMTP id hf2mr4664882pbb.28.1376400696193; Tue, 13 Aug 2013 06:31:36 -0700 (PDT) Received: from mail-pb0-f50.google.com (mail-pb0-f50.google.com [209.85.160.50]) by mx.google.com with ESMTPS id mu18si26221808pab.263.2013.08.13.06.31.35 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 13 Aug 2013 06:31:36 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.50 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.160.50; Received: by mail-pb0-f50.google.com with SMTP id uo5so8024615pbc.37 for ; Tue, 13 Aug 2013 06:31:35 -0700 (PDT) X-Received: by 10.68.201.6 with SMTP id jw6mr1182085pbc.202.1376400695758; Tue, 13 Aug 2013 06:31:35 -0700 (PDT) Received: from localhost ([122.172.193.46]) by mx.google.com with ESMTPSA id iu7sm44000973pbc.8.2013.08.13.06.31.30 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 13 Aug 2013 06:31:35 -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.linux.org.uk, linux-arm-kernel@lists.infradead.org, Viresh Kumar Subject: [PATCH 2/3] cpufreq: sa11x0: let cpufreq core initialize struct policy fields Date: Tue, 13 Aug 2013 19:01:06 +0530 Message-Id: <9c509bf4efcc6c6f1c5fafcc1f62004f6a745554.1376392060.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.128.181 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 fields of struct policy are filled by cpufreq core when we call cpufreq_table_validate_and_show() and so cpufreq driver doesn't need to set them anymore. Signed-off-by: Viresh Kumar --- drivers/cpufreq/sa1100-cpufreq.c | 4 +--- drivers/cpufreq/sa1110-cpufreq.c | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/cpufreq/sa1100-cpufreq.c b/drivers/cpufreq/sa1100-cpufreq.c index 1323a69..235500c 100644 --- a/drivers/cpufreq/sa1100-cpufreq.c +++ b/drivers/cpufreq/sa1100-cpufreq.c @@ -220,9 +220,7 @@ static int __init sa1100_cpu_init(struct cpufreq_policy *policy) { if (policy->cpu != 0) return -EINVAL; - policy->cur = policy->min = policy->max = sa11x0_getspeed(0); - policy->cpuinfo.min_freq = 59000; - policy->cpuinfo.max_freq = 287000; + policy->cur = a11x0_getspeed(0); policy->cpuinfo.transition_latency = CPUFREQ_ETERNAL; return cpufreq_table_validate_and_show(policy, sa11x0_freq_table); diff --git a/drivers/cpufreq/sa1110-cpufreq.c b/drivers/cpufreq/sa1110-cpufreq.c index adb0524..13760fc 100644 --- a/drivers/cpufreq/sa1110-cpufreq.c +++ b/drivers/cpufreq/sa1110-cpufreq.c @@ -334,9 +334,7 @@ static int __init sa1110_cpu_init(struct cpufreq_policy *policy) { if (policy->cpu != 0) return -EINVAL; - policy->cur = policy->min = policy->max = sa11x0_getspeed(0); - policy->cpuinfo.min_freq = 59000; - policy->cpuinfo.max_freq = 287000; + policy->cur = sa11x0_getspeed(0); policy->cpuinfo.transition_latency = CPUFREQ_ETERNAL; return cpufreq_table_validate_and_show(policy, sa11x0_freq_table);