From patchwork Fri Sep 13 13:01:23 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 20191 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vc0-f197.google.com (mail-vc0-f197.google.com [209.85.220.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 2C6E020358 for ; Fri, 13 Sep 2013 13:19:15 +0000 (UTC) Received: by mail-vc0-f197.google.com with SMTP id gd11sf1200657vcb.8 for ; Fri, 13 Sep 2013 06:19:14 -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=Fzd/+Ob2WE6QyD6mzCzicztLyOeYl/JXQNDIoyQpXik=; b=KlJnJ0gpJsqevChvIcP7YJlOfDG3QcR87hVTbKsiIvhAXHsOkWe8NNtN3oRK04j+01 yQvqvIcbOrL8KYf4TgEQ08CJzRpfaOtvXCThUaQ6w9fzAQQJ7u+cInRAVta1n4CZA8x9 ivOAW01q8IqfBRilaidNS1CGMaJQPXuK6ylRjy9lKPrfHWLF7tgvuyzOgAAbUJZZedj3 WuYqiJtno2MYt3ycPNmS+3CEBJDHV4ZbE4Q4vfdX1w8nLy2NEd5AXqbHAVTvOjAwt283 z0E4xxl8eskK7p0UJij60Heqpmomzle7Ujzgd3VD2F6aERJlSkkSZcdjzpUhQPjXCTUD Q3ww== X-Gm-Message-State: ALoCoQkEzMsJhZ2UWiGRPWDRw2u26xgsYKR1r1CHEDW+AVjt4LM0WQZeIiSOvmK3/wYfeH50QcIp X-Received: by 10.236.111.73 with SMTP id v49mr5029468yhg.46.1379078354921; Fri, 13 Sep 2013 06:19:14 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.0.41 with SMTP id 9ls1244120qeb.15.gmail; Fri, 13 Sep 2013 06:19:14 -0700 (PDT) X-Received: by 10.220.199.5 with SMTP id eq5mr11994459vcb.16.1379078354727; Fri, 13 Sep 2013 06:19:14 -0700 (PDT) Received: from mail-ve0-f172.google.com (mail-ve0-f172.google.com [209.85.128.172]) by mx.google.com with ESMTPS id tj1si3104059vdc.79.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:19:14 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.172 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.172; Received: by mail-ve0-f172.google.com with SMTP id oz11so948757veb.31 for ; Fri, 13 Sep 2013 06:19:14 -0700 (PDT) X-Received: by 10.58.133.66 with SMTP id pa2mr11859743veb.18.1379078354645; Fri, 13 Sep 2013 06:19:14 -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 u4csp80258vcz; Fri, 13 Sep 2013 06:19:14 -0700 (PDT) X-Received: by 10.68.29.36 with SMTP id g4mr13450272pbh.145.1379078353715; Fri, 13 Sep 2013 06:19:13 -0700 (PDT) Received: from mail-pa0-f47.google.com (mail-pa0-f47.google.com [209.85.220.47]) by mx.google.com with ESMTPS id sl4si11160430pac.300.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:19:13 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.47 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.220.47; Received: by mail-pa0-f47.google.com with SMTP id kl13so2521287pab.34 for ; Fri, 13 Sep 2013 06:19:13 -0700 (PDT) X-Received: by 10.66.25.70 with SMTP id a6mr15192116pag.68.1379078353172; Fri, 13 Sep 2013 06:19:13 -0700 (PDT) Received: from localhost ([122.167.78.148]) by mx.google.com with ESMTPSA id ha10sm11726174pbc.23.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:19:12 -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 Subject: [PATCH 137/228] cpufreq: maple: use cpufreq_generic_init() routine Date: Fri, 13 Sep 2013 18:31:23 +0530 Message-Id: <72a62d6c0deb04eb0262ebc9bc52b6a3735d7466.1379063063.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.172 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. 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 1c0cec1..eb1e176 100644 --- a/drivers/cpufreq/maple-cpufreq.c +++ b/drivers/cpufreq/maple-cpufreq.c @@ -165,16 +165,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,