From patchwork Wed Aug 21 14:42:26 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 19383 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qe0-f70.google.com (mail-qe0-f70.google.com [209.85.128.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id E1534248E6 for ; Wed, 21 Aug 2013 14:43:34 +0000 (UTC) Received: by mail-qe0-f70.google.com with SMTP id a11sf510907qen.5 for ; Wed, 21 Aug 2013 07:43:34 -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=JQtwoRa/9ZOJUNwDeTkb+uiyAPopmy+GWFx6gHCkoMU=; b=JA0jX9SIzw8mckd9nWX1pe6pWnHy99FIGt+VQxvEvWKE8K5nQFVXQGq34RkXF1mUBZ 2n1VXYfuw82MAk/cc+jb5LJNipsNVuw1NyosbpT2kw+8yVYY5XqZUibiHYYailJHbJ0B OdhCArDyI+ilqZxXegcaZPYtN1dmIsbgUYW7T2iY0PZzxcthuRe9A1o4G1tjQWcE/5oi eEN/QNaUqY3SI1SRHerAHeG2FWG4xkx1geUOC925vXz15YEHhxVYQF+Xwe6qLRc4YL9W vM/rJk+mNI3ci8XjnFQzad/RzWwx9REx+GcAxMDjr5ERauoGmTu3kN5a3ES4cnwtETI4 TqQQ== X-Received: by 10.236.115.198 with SMTP id e46mr2990154yhh.33.1377096214587; Wed, 21 Aug 2013 07:43:34 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.24.194 with SMTP id w2ls641093qef.96.gmail; Wed, 21 Aug 2013 07:43:34 -0700 (PDT) X-Received: by 10.220.237.208 with SMTP id kp16mr6784019vcb.4.1377096214478; Wed, 21 Aug 2013 07:43:34 -0700 (PDT) Received: from mail-vc0-f176.google.com (mail-vc0-f176.google.com [209.85.220.176]) by mx.google.com with ESMTPS id dm3si1568299vdc.33.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 21 Aug 2013 07:43:34 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.176 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.176; Received: by mail-vc0-f176.google.com with SMTP id ha11so317080vcb.35 for ; Wed, 21 Aug 2013 07:43:34 -0700 (PDT) X-Gm-Message-State: ALoCoQnwa162i1VHTQyfU4tWx9Ka7SOCfyDI+XgWVoJia3AEeD5CsjtAwr3jS7uPJyuv41Sp0K5B X-Received: by 10.220.206.195 with SMTP id fv3mr6762318vcb.15.1377096214394; Wed, 21 Aug 2013 07:43:34 -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 u4csp224573vcz; Wed, 21 Aug 2013 07:43:33 -0700 (PDT) X-Received: by 10.68.238.104 with SMTP id vj8mr57638pbc.149.1377096213355; Wed, 21 Aug 2013 07:43:33 -0700 (PDT) Received: from mail-pa0-f41.google.com (mail-pa0-f41.google.com [209.85.220.41]) by mx.google.com with ESMTPS id oq6si6702618pac.149.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 21 Aug 2013 07:43:33 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.41 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.220.41; Received: by mail-pa0-f41.google.com with SMTP id bj1so896243pad.14 for ; Wed, 21 Aug 2013 07:43:33 -0700 (PDT) X-Received: by 10.66.27.143 with SMTP id t15mr31769pag.171.1377096212860; Wed, 21 Aug 2013 07:43:32 -0700 (PDT) Received: from localhost ([122.172.193.46]) by mx.google.com with ESMTPSA id yg3sm1836067pab.16.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 21 Aug 2013 07:43:32 -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 , Dmitry Eremin-Solenikov Subject: [PATCH 07/14] cpufreq: maple: use cpufreq_generic_init() routine Date: Wed, 21 Aug 2013 20:12:26 +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.176 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: , Use generic cpufreq_generic_init() routine instead of replicating the same code here. Cc: Dmitry Eremin-Solenikov Signed-off-by: Viresh Kumar --- drivers/cpufreq/maple-cpufreq.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/drivers/cpufreq/maple-cpufreq.c b/drivers/cpufreq/maple-cpufreq.c index 45db7a2..2a2532a 100644 --- a/drivers/cpufreq/maple-cpufreq.c +++ b/drivers/cpufreq/maple-cpufreq.c @@ -141,16 +141,9 @@ static unsigned int maple_cpufreq_get_speed(unsigned int cpu) static int maple_cpufreq_cpu_init(struct cpufreq_policy *policy) { - policy->cpuinfo.transition_latency = 12000; - /* secondary CPUs are tied to the primary one by the - * cpufreq core if in the secondary policy we tell it that - * it actually must be one policy together with all others. */ - cpumask_setall(policy->cpus); - - return cpufreq_table_validate_and_show(policy, maple_cpu_freqs); + return cpufreq_generic_init(policy, maple_cpu_freqs, 12000); } - static struct cpufreq_driver maple_cpufreq_driver = { .name = "maple", .flags = CPUFREQ_CONST_LOOPS,