From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lukasz Majewski Subject: [PATCH 0/5] cpufreq:boost: CPU Boost mode support Date: Thu, 06 Jun 2013 09:07:47 +0200 Message-ID: <1370502472-7249-1-git-send-email-l.majewski@samsung.com> Return-path: Received: from mailout2.samsung.com ([203.254.224.25]:30086 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752998Ab3FFHIf (ORCPT ); Thu, 6 Jun 2013 03:08:35 -0400 Sender: linux-pm-owner@vger.kernel.org List-Id: linux-pm@vger.kernel.org To: Viresh Kumar , "Rafael J. Wysocky" Cc: "cpufreq@vger.kernel.org" , Linux PM list , Vincent Guittot , Lukasz Majewski , Jonghwa Lee , Myungjoo Ham , linux-kernel , Lukasz Majewski , Andre Przywara , Daniel Lezcano This patch series introduces support for CPU overclocking technique called Boost. It is a follow up of a LAB governor proposal. Boost is a LAB component: http://thread.gmane.org/gmane.linux.kernel/1484746/match=cpufreq Boost unifies hardware based solution (e.g. Intel Nehalem) with software oriented one (like the one done at Exynos). For this reason cpufreq/freq_table code has been reorganized to exclude common code. Important design decisions: - Boost related code is compiled-in unconditionally. I wanted to avoid situation when a lot of #ifdef CONFIG_CPU_FREQ_BOOST are scattered at cpufreq code (especially cpufreq.c large file) - Only one cpufreq_boost instance is created at cpufreq driver file. - Boost can manage overclocking when many policies are istalled in the system (this is a preparation for b.L) - Boost sysfs attributies are seen only when cpufreq driver supports them. They will not show up until either CONFIG_CPU_FREQ_BOOST or device tree cpufreq "boost_mode" attribute is defined. - No special spin_lock for Boost was created. The one from cpufreq was reused. - Low level boost trigger function (*low_level_boost function callback) is necessary to "glue" together acpi-cpufreq boost with software based one. Tested at: HW: Exynos 4412 3.10 linux Compile tested x86_64 defconfig (acpi) - help with HW test needed Lukasz Majewski (5): cpufreq: Define cpufreq_set_drv_attr_files() to add per CPU sysfs attributes cpufreq:boost: Add support for software based CPU frequency boost cpufreq:acpi:x86: Adjust the acpi-cpufreq.c code to work with common boost solution cpufreq:exynos:Extend exynos cpufreq driver to support boost cpufreq:boost:Kconfig: Enable boost support at Kconfig drivers/cpufreq/Kconfig | 7 ++ drivers/cpufreq/acpi-cpufreq.c | 64 ++++++-------- drivers/cpufreq/cpufreq.c | 175 ++++++++++++++++++++++++++++++++++++-- drivers/cpufreq/exynos-cpufreq.c | 48 +++++++++++ drivers/cpufreq/freq_table.c | 87 ++++++++++++++++++- include/linux/cpufreq.h | 35 +++++++- 6 files changed, 369 insertions(+), 47 deletions(-) -- 1.7.10.4