From patchwork Fri Oct 11 05:21:14 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: ??? X-Patchwork-Id: 3020661 Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id AA1BE9F245 for ; Fri, 11 Oct 2013 05:21:20 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C56322030D for ; Fri, 11 Oct 2013 05:21:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8EF9520266 for ; Fri, 11 Oct 2013 05:21:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752326Ab3JKFVR (ORCPT ); Fri, 11 Oct 2013 01:21:17 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:23840 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751527Ab3JKFVQ (ORCPT ); Fri, 11 Oct 2013 01:21:16 -0400 Received: from epcpsbgr4.samsung.com (u144.gpu120.samsung.co.kr [203.254.230.144]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MUH001SPO712F90@mailout1.samsung.com>; Fri, 11 Oct 2013 14:21:15 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.49]) by epcpsbgr4.samsung.com (EPCPMTA) with SMTP id A5.79.31253.BCA87525; Fri, 11 Oct 2013 14:21:15 +0900 (KST) X-AuditID: cbfee690-b7f3b6d000007a15-46-52578acbe2b9 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 99.8C.09055.BCA87525; Fri, 11 Oct 2013 14:21:15 +0900 (KST) Received: from DOJAYSLEE01 ([12.23.121.88]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MUH004WKO7EVM00@mmp2.samsung.com>; Fri, 11 Oct 2013 14:21:14 +0900 (KST) From: Jungseok Lee To: rjw@sisk.pl, viresh.kumar@linaro.org, amit.daniel@samsung.com Cc: linux-pm@vger.kernel.org, cpufreq@vger.kernel.org, kgene.kim@samsung.com Subject: [PATCH] cpufreq: exynos: Show a list of available frequencies Date: Fri, 11 Oct 2013 14:21:14 +0900 Message-id: <00bd01cec641$b4dbf150$1e93d3f0$%lee@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-index: Ac7GQbSVkUXJrUFbQvan0KHseoFLfA== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrDIsWRmVeSWpSXmKPExsVy+t8zQ93TXeFBBteuClk0XA2xeNr0g92i d8FVNovPvUcYLfoX9jJZbPzq4cDmcefaHjaPvi2rGD0eLW5h9Pi8SS6AJYrLJiU1J7MstUjf LoErY/2j+SwF3zgqDjUfZGlg3MnexcjJISFgItH+dDYzhC0mceHeejYQW0hgGaPEypNpMDX7 5jWwdjFyAcWnM0psOj6BBaLoN6PEzXeRIDabgKbEo7s9YENFBBwljj9bBWYzC/hIfF38Bmyo sICbxL5VfWBxFgFViWNLpzOB2LwCthKXHqxlh7AFJX5MvscC0aslsX7ncSYIW15i85q3QIdy AB2kLvHory7EKj2JdV+vQpWISOx78Y4R5E4JgX3sElMbbzJB7BKQ+Db5EAtEr6zEpgNQ/0pK HFxxg2UCo9gsJJtnIdk8C8nmWUhWLGBkWcUomlqQXFCclF5kolecmFtcmpeul5yfu4kREnMT djDeO2B9iDEZaP1EZinR5HxgzOaVxBsamxlZmJqYGhuZW5qRJqwkzqveYh0oJJCeWJKanZ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cFu90WSH02dXCLCq7z8J/8Y+9bzdr7bHVv JNZ6T2NWYinOSDTUYi4qTgQAXVCnVS0DAAA= DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch adds freq_attr to show a list of exynos5440 scaling available frequencies through sysfs. Common exynos driver already supports this attribute. Signed-off-by: Jungseok Lee --- drivers/cpufreq/exynos5440-cpufreq.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/cpufreq/exynos5440-cpufreq.c b/drivers/cpufreq/exynos5440-cpufreq.c index 24df155..2cc4797 100644 --- a/drivers/cpufreq/exynos5440-cpufreq.c +++ b/drivers/cpufreq/exynos5440-cpufreq.c @@ -345,6 +345,11 @@ static int exynos_cpufreq_cpu_exit(struct cpufreq_policy *policy) return 0; } +static struct freq_attr *exynos_cpufreq_attr[] = { + &cpufreq_freq_attr_scaling_available_freqs, + NULL, +}; + static struct cpufreq_driver exynos_driver = { .flags = CPUFREQ_STICKY, .verify = exynos_verify_speed, @@ -353,6 +358,7 @@ static struct cpufreq_driver exynos_driver = { .init = exynos_cpufreq_cpu_init, .exit = exynos_cpufreq_cpu_exit, .name = CPUFREQ_NAME, + .attr = exynos_cpufreq_attr, }; static const struct of_device_id exynos_cpufreq_match[] = {