From patchwork Fri Sep 13 13:01:27 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 20195 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ve0-f199.google.com (mail-ve0-f199.google.com [209.85.128.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 67DA320358 for ; Fri, 13 Sep 2013 13:19:43 +0000 (UTC) Received: by mail-ve0-f199.google.com with SMTP id db12sf1236309veb.2 for ; Fri, 13 Sep 2013 06:19:43 -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=KybWm4z04b+Y4kkuBSX/Q8A9hGF6RR5vXRYefagXpXo=; b=BiNAGWAgbpdiv3DbwvQWRoopItrUDBWTlEZYc35C2zd8gY0G6I0yCcx0HA3ILRJS0F 8dgnZ5/yaxhO9w/sMZoQ5/i3ozTzn2d+jMEQoIJxVQq8DUU477OuN2iGn1msXJlCk/aF kQzJgklMxmyZE05fvMC4MoyCYxbEZl/as8RzEBhJdNQZDuIB/RQ3zhAvE0FOXzLUEpSm M5pskOUCa+JV3ZhOYm6BmF/sTXgu1PaDd+Yop/vF5+mrqziMTzRGIIkqMQj9uxq4PBu+ I9ELri8zLTQ48B7yKU6rF5sLeTfvV70BJ5aFYywJNCEXOD34B2OwgOXiuDLbByZ5EgL4 tMfQ== X-Gm-Message-State: ALoCoQnQj5e2gMhXv00UH0mWf3Rahb6te73oLS1zFf/FXAZIX7f6C1bEkOE1J+bGqLstjEOP+lj5 X-Received: by 10.236.14.100 with SMTP id c64mr5159136yhc.38.1379078383150; Fri, 13 Sep 2013 06:19:43 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.97.66 with SMTP id dy2ls1239317qeb.85.gmail; Fri, 13 Sep 2013 06:19:42 -0700 (PDT) X-Received: by 10.220.88.13 with SMTP id y13mr12215211vcl.20.1379078382936; Fri, 13 Sep 2013 06:19:42 -0700 (PDT) Received: from mail-vc0-f172.google.com (mail-vc0-f172.google.com [209.85.220.172]) by mx.google.com with ESMTPS id fe2si3128779vcb.16.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:19:42 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.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.220.172; Received: by mail-vc0-f172.google.com with SMTP id m17so904631vca.17 for ; Fri, 13 Sep 2013 06:19:42 -0700 (PDT) X-Received: by 10.58.196.132 with SMTP id im4mr1079514vec.28.1379078382874; Fri, 13 Sep 2013 06:19:42 -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 u4csp80284vcz; Fri, 13 Sep 2013 06:19:42 -0700 (PDT) X-Received: by 10.66.227.194 with SMTP id sc2mr15518744pac.41.1379078381430; Fri, 13 Sep 2013 06:19:41 -0700 (PDT) Received: from mail-pd0-f175.google.com (mail-pd0-f175.google.com [209.85.192.175]) by mx.google.com with ESMTPS id xn6si7478614pbc.2.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:19:41 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.192.175 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.192.175; Received: by mail-pd0-f175.google.com with SMTP id q10so1238808pdj.6 for ; Fri, 13 Sep 2013 06:19:41 -0700 (PDT) X-Received: by 10.66.248.130 with SMTP id ym2mr2034561pac.177.1379078381012; Fri, 13 Sep 2013 06:19:41 -0700 (PDT) Received: from localhost ([122.167.78.148]) by mx.google.com with ESMTPSA id wp8sm11725627pbc.26.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:19:40 -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 141/228] cpufreq: pmac64: use cpufreq_generic_init() routine Date: Fri, 13 Sep 2013 18:31:27 +0530 Message-Id: <3c39921134990a55770b0421cf7131916384e8d5.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.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/pmac64-cpufreq.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/drivers/cpufreq/pmac64-cpufreq.c b/drivers/cpufreq/pmac64-cpufreq.c index 79e40c9..b977b9a 100644 --- a/drivers/cpufreq/pmac64-cpufreq.c +++ b/drivers/cpufreq/pmac64-cpufreq.c @@ -347,16 +347,9 @@ static unsigned int g5_cpufreq_get_speed(unsigned int cpu) static int g5_cpufreq_cpu_init(struct cpufreq_policy *policy) { - policy->cpuinfo.transition_latency = transition_latency; - /* 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_copy(policy->cpus, cpu_online_mask); - - return cpufreq_table_validate_and_show(policy, g5_cpu_freqs); + return cpufreq_generic_init(policy, g5_cpu_freqs, transition_latency); } - static struct cpufreq_driver g5_cpufreq_driver = { .name = "powermac", .flags = CPUFREQ_CONST_LOOPS,