From patchwork Sat Aug 10 06:44:05 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 18942 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 698B0246EB for ; Sat, 10 Aug 2013 06:48:56 +0000 (UTC) Received: by mail-vb0-f72.google.com with SMTP id f12sf2018508vbg.7 for ; Fri, 09 Aug 2013 23:48:56 -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=m4M4bu2xyYgHZjg5+ESVjnYLG39k7eIyxxPXSQ+PdWE=; b=mEeewlFrS2qY9nE6e8wgm63/enGqhtB+3fVuI8S24zmTx5MyFbvT4p4g+6+jwmRD1Z g/lMtlNvsoK8VvOvG+Q9hnMWRd9jZd7G4T1HJ/TRRpvB7Uqw3TtS6xw+QSJpNEbL7Mzx 2qW+qQ9OJ7Ry/t/T39Yg3UYFdv/tzDiV69bFm9D9ErHsvcVrzMP6b1DJ283bt87IV/YF U9Lj0lP5XiyaNxh12OJDWLY8r3K7ctYo/A14ykTGFEJAzmG3PAYjJNBmgmDziNaVUaWW Tc2rohyDAaovFDt766TkpaIAuwndl8Mi0Dk4NO6GwsSs4GUcJ81cKLKNuvn4GRhT8xSR 62ug== X-Received: by 10.236.113.197 with SMTP id a45mr6692256yhh.14.1376117336115; Fri, 09 Aug 2013 23:48:56 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.97.197 with SMTP id ec5ls1711243qeb.26.gmail; Fri, 09 Aug 2013 23:48:56 -0700 (PDT) X-Received: by 10.220.3.78 with SMTP id 14mr2186160vcm.44.1376117335975; Fri, 09 Aug 2013 23:48:55 -0700 (PDT) Received: from mail-vb0-f43.google.com (mail-vb0-f43.google.com [209.85.212.43]) by mx.google.com with ESMTPS id rx10si5683221vdc.21.2013.08.09.23.48.55 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 09 Aug 2013 23:48:55 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.43 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.43; Received: by mail-vb0-f43.google.com with SMTP id h11so4659493vbh.16 for ; Fri, 09 Aug 2013 23:48:55 -0700 (PDT) X-Gm-Message-State: ALoCoQnY6CQZGCAuixEZiDN2xMAGNVs427PyjTdZq7349FFX2SxNSIQX/qPo3GuC7FcOxudl5/ON X-Received: by 10.52.180.229 with SMTP id dr5mr6456407vdc.20.1376117335899; Fri, 09 Aug 2013 23:48:55 -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 u4csp111vcz; Fri, 9 Aug 2013 23:48:55 -0700 (PDT) X-Received: by 10.68.217.137 with SMTP id oy9mr14883791pbc.130.1376117334978; Fri, 09 Aug 2013 23:48:54 -0700 (PDT) Received: from mail-pd0-f177.google.com (mail-pd0-f177.google.com [209.85.192.177]) by mx.google.com with ESMTPS id gg2si15755681pac.246.2013.08.09.23.48.54 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 09 Aug 2013 23:48:54 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.192.177 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.192.177; Received: by mail-pd0-f177.google.com with SMTP id y10so1394155pdj.22 for ; Fri, 09 Aug 2013 23:48:54 -0700 (PDT) X-Received: by 10.66.25.102 with SMTP id b6mr14666724pag.129.1376117334624; Fri, 09 Aug 2013 23:48:54 -0700 (PDT) Received: from localhost ([122.172.193.46]) by mx.google.com with ESMTPSA id fa5sm24184261pbb.3.2013.08.09.23.48.51 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 09 Aug 2013 23:48:54 -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/44] cpufreq: acpi: Use generic cpufreq routines Date: Sat, 10 Aug 2013 12:14:05 +0530 Message-Id: <2f96344a6751bcbb8a59bbc5d34907d95ba1066b.1376116345.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.212.43 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: , Most of the CPUFreq drivers do similar things in .exit() and .verify() routines and .attr. So its better if we have generic routines for them which can be used by cpufreq drivers then. This patch uses these generic routines for this driver. Signed-off-by: Viresh Kumar --- drivers/cpufreq/acpi-cpufreq.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/drivers/cpufreq/acpi-cpufreq.c b/drivers/cpufreq/acpi-cpufreq.c index 75e829d..cd5badb 100644 --- a/drivers/cpufreq/acpi-cpufreq.c +++ b/drivers/cpufreq/acpi-cpufreq.c @@ -516,15 +516,6 @@ out: return result; } -static int acpi_cpufreq_verify(struct cpufreq_policy *policy) -{ - struct acpi_cpufreq_data *data = per_cpu(acfreq_data, policy->cpu); - - pr_debug("acpi_cpufreq_verify\n"); - - return cpufreq_frequency_table_verify(policy, data->freq_table); -} - static unsigned long acpi_cpufreq_guess_freq(struct acpi_cpufreq_data *data, unsigned int cpu) { @@ -927,7 +918,7 @@ static struct freq_attr *acpi_cpufreq_attr[] = { }; static struct cpufreq_driver acpi_cpufreq_driver = { - .verify = acpi_cpufreq_verify, + .verify = cpufreq_generic_frequency_table_verify, .target = acpi_cpufreq_target, .bios_limit = acpi_processor_get_bios_limit, .init = acpi_cpufreq_cpu_init,