From patchwork Tue Mar 4 10:27:31 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukasz Majewski X-Patchwork-Id: 3760711 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 9F9DE9F376 for ; Tue, 4 Mar 2014 10:28:28 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B1FF120430 for ; Tue, 4 Mar 2014 10:28:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C570520397 for ; Tue, 4 Mar 2014 10:28:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756985AbaCDK2Z (ORCPT ); Tue, 4 Mar 2014 05:28:25 -0500 Received: from mailout1.samsung.com ([203.254.224.24]:34056 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756869AbaCDK2T (ORCPT ); Tue, 4 Mar 2014 05:28:19 -0500 Received: from epcpsbgm1.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N1W00CDLQEY5BA0@mailout1.samsung.com>; Tue, 04 Mar 2014 19:28:10 +0900 (KST) X-AuditID: cbfee61a-b7fb26d00000724f-d1-5315aabaf4a7 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 23.48.29263.ABAA5135; Tue, 04 Mar 2014 19:28:10 +0900 (KST) Received: from mcdsrvbld02.digital.local ([106.116.37.23]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0N1W00NZ9QDY2U40@mmp1.samsung.com>; Tue, 04 Mar 2014 19:28:10 +0900 (KST) From: Lukasz Majewski To: Viresh Kumar , "Rafael J. Wysocki" Cc: "cpufreq@vger.kernel.org" , Linux PM list , Jonghwa Lee , Lukasz Majewski , Lukasz Majewski , linux-kernel , Bartlomiej Zolnierkiewicz , Myungjoo Ham , Tomasz Figa , Thomas Abraham , thomas.ab@samsung.com, "linux-arm-kernel@lists.infradead.org" , linux-samsung-soc@vger.kernel.org Subject: [RFC v3 4/5] cpufreq:LAB:Kconfig Add LAB definitions to Kconfig Date: Tue, 04 Mar 2014 11:27:31 +0100 Message-id: <1393928852-22725-5-git-send-email-l.majewski@samsung.com> X-Mailer: git-send-email 1.7.10.4 In-reply-to: <1393928852-22725-1-git-send-email-l.majewski@samsung.com> References: <1367590072-10496-1-git-send-email-jonghwa3.lee@samsung.com> <1393928852-22725-1-git-send-email-l.majewski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrCLMWRmVeSWpSXmKPExsVy+t9jAd1dq0SDDb7OFbbYOGM9q8XTph/s Fp1nnzBbvHnEbfHm4WZGi02Pr7FaXN41h83ic+8RRosZ5/cxWdxuXMFmceb0JVaL9TNes1hs nrCRzaJjGaPFxq8eDvweO2fdZfe4c20Pm8fmJfUe66a9ZfbYcrWdxaNvyypGj8+b5ALYo7hs UlJzMstSi/TtErgyDs46z14wT6hi65djbA2MV/m6GDk5JARMJBZtu88GYYtJXLi3Hsjm4hAS WMQocePUdUYIp4tJ4tHzZWBVbAJ6Ep/vPmUCsUUEQiWOTv3KDlLELHCGReLti92sIAlhAQ+J kw9fgzWwCKhKHLu6GCzOK+AmceXrHVaIdYoS3c8mgNVwCrhLHF/RzAyxrZVR4vLOG0wTGHkX MDKsYhRNLUguKE5KzzXUK07MLS7NS9dLzs/dxAgO22dSOxhXNlgcYhTgYFTi4Z0xTSRYiDWx rLgy9xCjBAezkgiv4kLRYCHelMTKqtSi/Pii0pzU4kOM0hwsSuK8B1qtA4UE0hNLUrNTUwtS i2CyTBycUg2Mra0vU8PWX/EufeXZOb99T+OB63En8i3Zhfg8k6+/2Je6pivdbJ75pdt1Ij7c eS4zUj7WOdetb7H1vnZdeLXcsc/7a8/mtM/eFqWXFnn4j51A1dtH/xc+eH/skmHPIp/PZi+8 r2hsaZhyd4LFRMFqw7s8lwNDfYzeFK8pnhV+Zo9a3bMAUxEWJZbijERDLeai4kQANDmICVcC AAA= Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Spam-Status: No, score=-3.9 required=5.0 tests=BAYES_00,KHOP_BIG_TO_CC, 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 Provide support for LAB governor for the Kbuild. It is important to note, that LAB is not possible to be compiled in as a module since we cannot assure (in the kernel) that backing ondemand module will not be removed without notice to LAB. For this reason the LAB can be only compiled into the kernel without possibility to be compiled as a module. Signed-off-by: Lukasz Majewski Signed-off-by: MyungJoo Ham --- drivers/cpufreq/Kconfig | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/drivers/cpufreq/Kconfig b/drivers/cpufreq/Kconfig index 4b029c0..3a870ea 100644 --- a/drivers/cpufreq/Kconfig +++ b/drivers/cpufreq/Kconfig @@ -102,6 +102,18 @@ config CPU_FREQ_DEFAULT_GOV_CONSERVATIVE Be aware that not all cpufreq drivers support the conservative governor. If unsure have a look at the help section of the driver. Fallback governor will be the performance governor. + +config CPU_FREQ_DEFAULT_GOV_LAB + bool "lab" + select CPU_FREQ_GOV_LAB + select CPU_FREQ_GOV_PERFORMANCE + help + Use the CPUFreq governor 'lab' as default. This allows + you to get a full dynamic frequency capable system by simply + loading your cpufreq low-level hardware driver. + Be aware that not all cpufreq drivers support the lab governor. + If unsure have a look at the help section of the driver. + Fallback governor will be the performance governor. endchoice config CPU_FREQ_GOV_PERFORMANCE @@ -183,6 +195,22 @@ config CPU_FREQ_GOV_CONSERVATIVE If in doubt, say N. +config CPU_FREQ_GOV_LAB + bool "'lab' cpufreq policy governor - ONDEMAND extension" + select CPU_FREQ_TABLE + select CPU_FREQ_GOV_COMMON + select CPU_FREQ_GOV_ONDEMAND + help + 'lab' - This driver adds a dynamic cpufreq policy governor. + + LAB governor shall be regarded as an extension of the ONDEMAND on + platforms with very weak HW support for power management. + + LAB governor can be either compiled in or not. It is not possible to + compile it as module because of explicit ONDEMAND dependency. + + If in doubt, say N. + config GENERIC_CPUFREQ_CPU0 tristate "Generic CPU0 cpufreq driver" depends on HAVE_CLK && REGULATOR && OF && THERMAL && CPU_THERMAL