From patchwork Fri Sep 13 13:01:15 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 20183 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vb0-f72.google.com (mail-vb0-f72.google.com [209.85.212.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id BB97720358 for ; Fri, 13 Sep 2013 13:18:18 +0000 (UTC) Received: by mail-vb0-f72.google.com with SMTP id f12sf1201575vbg.3 for ; Fri, 13 Sep 2013 06:18: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=sWOIzxGGPomU4+dpwY9HhmLlgIZcojDcV+U2jdj8/WE=; b=LLtkwrO3Vomxhj3tTm9LEZMlpLyQdSnc7paTrEjr3chiMYYXYa+MWJqbfov91Si0lF ePRXpkom4/zh9ZxXlgmpTbnnW3phyk3y+OjRDhaoLe3yV/U1zxw4wQOeQISophwO/0Hu exgHNgGdw7pRlH/XJh/gjf1gzRmQlumkm2e2QL+Ym3+9T5PsAQEzbyuzOVHa1+5iNG2N LXWI9d4cTJ4kTv3rNnokUjPAccSNFMVcuAkocewdcr1zLJkB0Cx1j3sU6X6e8aiDr2g4 EoxLKyEU7gSkHaUNok75nKuWijpkKfbvBeZ7zw3DFJ8FwW5xnEJxS8Vr1E1ldEn7rcdn PWtw== X-Gm-Message-State: ALoCoQnIlm2XQFph4Hgqi5VWnzp7vZRAUPRbsN+iJKkSN0N3kYx2IO9h7VCWTRJ9dBpjdKehSA59 X-Received: by 10.236.63.165 with SMTP id a25mr4990372yhd.43.1379078298513; Fri, 13 Sep 2013 06:18:18 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.71.209 with SMTP id x17ls1214208qeu.83.gmail; Fri, 13 Sep 2013 06:18:18 -0700 (PDT) X-Received: by 10.58.235.193 with SMTP id uo1mr11886655vec.6.1379078298303; Fri, 13 Sep 2013 06:18:18 -0700 (PDT) Received: from mail-vc0-f169.google.com (mail-vc0-f169.google.com [209.85.220.169]) by mx.google.com with ESMTPS id t9si3112762vcz.72.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:18:18 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.169 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.169; Received: by mail-vc0-f169.google.com with SMTP id ib11so935799vcb.0 for ; Fri, 13 Sep 2013 06:18:18 -0700 (PDT) X-Received: by 10.58.196.132 with SMTP id im4mr1073978vec.28.1379078298225; Fri, 13 Sep 2013 06:18: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 u4csp80209vcz; Fri, 13 Sep 2013 06:18:17 -0700 (PDT) X-Received: by 10.68.254.166 with SMTP id aj6mr1619316pbd.193.1379078297387; Fri, 13 Sep 2013 06:18:17 -0700 (PDT) Received: from mail-pd0-f176.google.com (mail-pd0-f176.google.com [209.85.192.176]) by mx.google.com with ESMTPS id ia4si7424399pbb.252.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:18:17 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.192.176 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.192.176; Received: by mail-pd0-f176.google.com with SMTP id q10so1236088pdj.35 for ; Fri, 13 Sep 2013 06:18:17 -0700 (PDT) X-Received: by 10.68.200.34 with SMTP id jp2mr13292326pbc.53.1379078296984; Fri, 13 Sep 2013 06:18:16 -0700 (PDT) Received: from localhost ([122.167.78.148]) by mx.google.com with ESMTPSA id sb9sm11745622pbb.0.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:18: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 , Shawn Guo Subject: [PATCH 129/228] cpufreq: cpu0: use cpufreq_generic_init() routine Date: Fri, 13 Sep 2013 18:31:15 +0530 Message-Id: <5634a2ff3f1e3d0544cc09fbf6dafb4a788ae91e.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.220.169 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: Shawn Guo Signed-off-by: Viresh Kumar --- drivers/cpufreq/cpufreq-cpu0.c | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/drivers/cpufreq/cpufreq-cpu0.c b/drivers/cpufreq/cpufreq-cpu0.c index 2486c13..d8756e7 100644 --- a/drivers/cpufreq/cpufreq-cpu0.c +++ b/drivers/cpufreq/cpufreq-cpu0.c @@ -121,24 +121,7 @@ post_notify: static int cpu0_cpufreq_init(struct cpufreq_policy *policy) { - int ret; - - ret = cpufreq_table_validate_and_show(policy, freq_table); - if (ret) { - pr_err("invalid frequency table: %d\n", ret); - return ret; - } - - policy->cpuinfo.transition_latency = transition_latency; - - /* - * The driver only supports the SMP configuartion where all processors - * share the clock and voltage and clock. Use cpufreq affected_cpus - * interface to have all CPUs scaled together. - */ - cpumask_setall(policy->cpus); - - return 0; + return cpufreq_generic_init(policy, freq_table, transition_latency); } static struct cpufreq_driver cpu0_cpufreq_driver = {