From patchwork Fri Sep 13 13:00:02 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 20110 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vc0-f199.google.com (mail-vc0-f199.google.com [209.85.220.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 9CA83202E6 for ; Fri, 13 Sep 2013 13:09:41 +0000 (UTC) Received: by mail-vc0-f199.google.com with SMTP id gf11sf1193882vcb.6 for ; Fri, 13 Sep 2013 06:09:41 -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=X9hTcvaAnmwbmqE6Ghk71kAAGH8KaYNxQ72wznkB3EY=; b=VLlE4YnNMYzgbyBs7bYSlMCb27XvamBG59IQ3gwodVmeY9gGNwij9lr/ZGT+h0/yoG GerjASVxM+pM6m4hXDXpssG7KgD1LAbvkFbg43OAbldwjyLPPDvT022BiaMr6hnEaXMi nXLQYE5gtyj4sQZZbW257AnRooMKj9kyLjGvC0GXRfn3UyZE4GZ4OTQg1897Tt9FTh3C nTIiV4SWrlLOkxdV+AnmkqJCzoaOQZhX7aeIkMXyv4bSY+8Z6dfoOk98Q6FAnXKcnME1 bQEQLfyPVuirfe5A3T2+pD0LNDlC4Jz4EF0Bitsa/UktSBFTxsoSsRNpJCyfpyYS2VtW Vdow== X-Gm-Message-State: ALoCoQkzuOu++HGbiDyz/zuxI/vOFQMv/Lb46hhHOiwin7+umsYPs515LGaGNVhYJ+UMIFdmUyaZ X-Received: by 10.236.41.100 with SMTP id g64mr5101159yhb.31.1379077781388; Fri, 13 Sep 2013 06:09:41 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.0.236 with SMTP id 12ls1189948qeh.67.gmail; Fri, 13 Sep 2013 06:09:41 -0700 (PDT) X-Received: by 10.220.105.199 with SMTP id u7mr11681711vco.1.1379077781176; Fri, 13 Sep 2013 06:09:41 -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 un5si3096380vcb.97.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:09:41 -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 h11so889501vbh.16 for ; Fri, 13 Sep 2013 06:09:41 -0700 (PDT) X-Received: by 10.220.144.68 with SMTP id y4mr747594vcu.28.1379077781070; Fri, 13 Sep 2013 06:09:41 -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 u4csp79782vcz; Fri, 13 Sep 2013 06:09:40 -0700 (PDT) X-Received: by 10.66.102.66 with SMTP id fm2mr15287831pab.94.1379077780176; Fri, 13 Sep 2013 06:09:40 -0700 (PDT) Received: from mail-pa0-f54.google.com (mail-pa0-f54.google.com [209.85.220.54]) by mx.google.com with ESMTPS id ds3si7403404pbb.229.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:09:40 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.54 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.220.54; Received: by mail-pa0-f54.google.com with SMTP id kx10so2505459pab.41 for ; Fri, 13 Sep 2013 06:09:39 -0700 (PDT) X-Received: by 10.68.229.2 with SMTP id sm2mr13347908pbc.68.1379077779715; Fri, 13 Sep 2013 06:09:39 -0700 (PDT) Received: from localhost ([122.167.78.148]) by mx.google.com with ESMTPSA id w6sm11659130pbt.32.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:09:39 -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 056/228] cpufreq: acpi: Use generic cpufreq routines Date: Fri, 13 Sep 2013 18:30:02 +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.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 71f8e15..d67023d 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,