From patchwork Wed Aug 21 14:42:28 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 19385 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ye0-f199.google.com (mail-ye0-f199.google.com [209.85.213.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 44FBE248E6 for ; Wed, 21 Aug 2013 14:43:49 +0000 (UTC) Received: by mail-ye0-f199.google.com with SMTP id l13sf447312yen.10 for ; Wed, 21 Aug 2013 07:43:49 -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=h1O7VQhXa8oRzyTprjTn3FL6gObM/RBwWuHrhNVnCyQ=; b=n+gNMJ0St/tFhajggTXS457voskLaIiqDNTvqXmRssMRvRh3/1kSDohWdvzX3s86OG +0lYpEHy/yWiAi88xaPrSL9kBv7PavEEdlW7hsX1itJLv7AasmoyBb6M+U6oYmgLDlfr H50rJGqn/V7QpV6VEeW7kP5T9s8R+bltPXiMfL1+yaTHHFwrbzI7osjQkJ8vEpmDtpvv Nyo45XVRl7jsFL+p+bGmdM3nDt2HnXxpCDnCGODrWa+tEvOaTAZvroVlPIAOj/9yfYUc NsEzmdt/l8YicyuCGAH9vImfDl8NxwJBuA6UCO4aYmSw5V/MXVGuLBCLYLBdG6Bt1ACV LkJA== X-Received: by 10.58.136.227 with SMTP id qd3mr682383veb.17.1377096229015; Wed, 21 Aug 2013 07:43:49 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.74.198 with SMTP id w6ls732963qev.9.gmail; Wed, 21 Aug 2013 07:43:48 -0700 (PDT) X-Received: by 10.58.155.6 with SMTP id vs6mr440037veb.32.1377096228848; Wed, 21 Aug 2013 07:43:48 -0700 (PDT) Received: from mail-ve0-f175.google.com (mail-ve0-f175.google.com [209.85.128.175]) by mx.google.com with ESMTPS id l1si2210255vcl.139.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 21 Aug 2013 07:43:48 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.175 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.175; Received: by mail-ve0-f175.google.com with SMTP id oy10so415721veb.34 for ; Wed, 21 Aug 2013 07:43:48 -0700 (PDT) X-Gm-Message-State: ALoCoQlHdTO8oPadgl8RbrElwVOjTN75zROQqmeLksXlwm4pyp2+ssTTCS/ebiHfzkcjf2LT87wI X-Received: by 10.59.8.232 with SMTP id dn8mr6767243ved.8.1377096228771; Wed, 21 Aug 2013 07:43:48 -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 u4csp224588vcz; Wed, 21 Aug 2013 07:43:48 -0700 (PDT) X-Received: by 10.67.30.100 with SMTP id kd4mr10015859pad.24.1377096227825; Wed, 21 Aug 2013 07:43:47 -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 qh6si6675285pac.279.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 21 Aug 2013 07:43:47 -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 bj1so897406pad.28 for ; Wed, 21 Aug 2013 07:43:47 -0700 (PDT) X-Received: by 10.66.227.2 with SMTP id rw2mr58767pac.131.1377096227284; Wed, 21 Aug 2013 07:43:47 -0700 (PDT) Received: from localhost ([122.172.193.46]) by mx.google.com with ESMTPSA id tz3sm4659690pbc.20.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 21 Aug 2013 07:43:46 -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 Subject: [PATCH 09/14] cpufreq: pmac64: use cpufreq_generic_init() routine Date: Wed, 21 Aug 2013 20:12:28 +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.128.175 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 2557f16..18fecf3 100644 --- a/drivers/cpufreq/pmac64-cpufreq.c +++ b/drivers/cpufreq/pmac64-cpufreq.c @@ -321,16 +321,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,