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: 2843625 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 438869F271 for ; Tue, 13 Aug 2013 13:33:20 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6B68320445 for ; Tue, 13 Aug 2013 13:33:15 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2253320436 for ; Tue, 13 Aug 2013 13:33:14 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1V9EiF-0004UG-H3; Tue, 13 Aug 2013 13:32:40 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1V9Ehv-0007W3-47; Tue, 13 Aug 2013 13:32:19 +0000 Received: from mail-pa0-f42.google.com ([209.85.220.42]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1V9EhZ-0007Q1-73 for linux-arm-kernel@lists.infradead.org; Tue, 13 Aug 2013 13:31:58 +0000 Received: by mail-pa0-f42.google.com with SMTP id lj1so8794759pab.1 for ; Tue, 13 Aug 2013 06:31:35 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=V9mf6BDnFW3uufBzoIfRw/xowf1Apj9eTOkqSlQLo04=; b=GB7C3Y6/6xlQayW2v9dzHaO9pRmNJcZYm1243b6ZM7kyNzElXsAbVOBXEOPanpl5Se 2+M6lcXu4WiioRFXmf77JLSD3uUmeFs21+i2mJZSeIcrm47AGTaKb2qhCMYeKEt5mvzR Kq5QMZIYNDNBTTDq3YLcePymiSKhB1d+VqZaYimAvsedcJsw74zWBwUr0WPzm4i7FGfG a4bJoWPlJOTGThMoD0yDQCgd7WAmFt/bV1ujoYxVixM3c5PiKqV+I97nbI3GaCM46L7h aBmXNpNuRlhv9YOJMaZlSZkXqec1pVMhsgwug+0cBc5aGWn985zDupNvfydu7tmhjI+D kmnA== X-Gm-Message-State: ALoCoQkYPAofChi4WqXj9+CHzOlC0stBGy59EUQ8Mlej3S7R0PewS5KiYCqmaf5OAKaC89PfB5uy 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 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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130813_093157_411350_71B50527 X-CRM114-Status: GOOD ( 10.34 ) X-Spam-Score: -2.6 (--) Cc: linaro-kernel@lists.linaro.org, linux@arm.linux.org.uk, linux-pm@vger.kernel.org, Viresh Kumar , patches@linaro.org, linux-kernel@vger.kernel.org, cpufreq@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-7.0 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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);