From patchwork Fri Sep 13 13:01:22 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 20190 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ve0-f197.google.com (mail-ve0-f197.google.com [209.85.128.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 5DAFC20358 for ; Fri, 13 Sep 2013 13:19:08 +0000 (UTC) Received: by mail-ve0-f197.google.com with SMTP id jy13sf1242061veb.0 for ; Fri, 13 Sep 2013 06:19:08 -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=CMxC4ISEZBFrJB7NrjSRO2rZkzajn8xVC7Q6jMaRr78=; b=GG5JjpVLofpVn8q9FCAdAibxgpUrrhNYc8jH+22LNxLy1KL+IfDjgeASB0OINrm6ur BfmrzmZ+txOPcdMGoYHI5DxS5rl1zOnHM6MOikbbuahFyN4gklFkRMvmAUBP9gtmrLL9 z13UrLMkB9SwLViKw6B6zX3d+mQD2cKV//koTVmYCzqAa/DW3y60y2x1+rWCMQ8B+D5E hutIPFNdWRVPD/1qnS7bUDVm7xp8q11bWj8ZsFgMvpz/D4t6GTkDb+6+To0DbozBC3Wo D+t9Q0J4Kh0n+RqToN4Knw9o/+pZsl7B/I5VRK/D7AAKvmyC3StaCrAGFrOjo11IuvMk 5nkQ== X-Gm-Message-State: ALoCoQnEUkqpabRzvGvdP8vZTk9sNS4Cr0Vi5tFfjnp04KIJUp4kTu9Ekt0a/S1s/674ZgHSwqCc X-Received: by 10.236.189.37 with SMTP id b25mr678782yhn.48.1379078348078; Fri, 13 Sep 2013 06:19:08 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.64.68 with SMTP id m4ls77723qes.5.gmail; Fri, 13 Sep 2013 06:19:07 -0700 (PDT) X-Received: by 10.58.246.8 with SMTP id xs8mr12101178vec.9.1379078347853; Fri, 13 Sep 2013 06:19:07 -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 is10si3096533veb.146.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:19:07 -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 oy12so953208veb.12 for ; Fri, 13 Sep 2013 06:19:07 -0700 (PDT) X-Received: by 10.58.161.116 with SMTP id xr20mr11970908veb.2.1379078347774; Fri, 13 Sep 2013 06:19:07 -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 u4csp80249vcz; Fri, 13 Sep 2013 06:19:07 -0700 (PDT) X-Received: by 10.66.159.40 with SMTP id wz8mr15387472pab.135.1379078346965; Fri, 13 Sep 2013 06:19:06 -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 ua7si11262374pac.1.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:19:06 -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 q10so1232397pdj.7 for ; Fri, 13 Sep 2013 06:19:06 -0700 (PDT) X-Received: by 10.68.36.132 with SMTP id q4mr13509444pbj.118.1379078346459; Fri, 13 Sep 2013 06:19:06 -0700 (PDT) Received: from localhost ([122.167.78.148]) by mx.google.com with ESMTPSA id sy2sm11733399pbc.16.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:19:06 -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 , Aaro Koskinen , John Crispin Subject: [PATCH 136/228] cpufreq: loongson2: use cpufreq_generic_init() routine Date: Fri, 13 Sep 2013 18:31:22 +0530 Message-Id: <63ebf29a1bcc7b3a26f8bfc76a5677d2880f8534.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.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: , Use generic cpufreq_generic_init() routine instead of replicating the same code here. This driver wasn't setting transition_latency and so is getting set to 0 by default. Lets mark it explicitly by calling the generic routine with transition_latency as 0. Cc: Aaro Koskinen Cc: John Crispin Signed-off-by: Viresh Kumar Acked-by: Aaro Koskinen --- drivers/cpufreq/loongson2_cpufreq.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/cpufreq/loongson2_cpufreq.c b/drivers/cpufreq/loongson2_cpufreq.c index dd4f3e4..2c8ec8e 100644 --- a/drivers/cpufreq/loongson2_cpufreq.c +++ b/drivers/cpufreq/loongson2_cpufreq.c @@ -131,8 +131,7 @@ static int loongson2_cpufreq_cpu_init(struct cpufreq_policy *policy) return ret; } - return cpufreq_table_validate_and_show(policy, - &loongson2_clockmod_table[0]); + return cpufreq_generic_init(policy, &loongson2_clockmod_table[0], 0); } static int loongson2_cpufreq_exit(struct cpufreq_policy *policy)