From patchwork Fri Sep 21 09:02:24 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: durgadoss.r@intel.com X-Patchwork-Id: 1490591 Return-Path: X-Original-To: patchwork-linux-acpi@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id CE943DF28C for ; Fri, 21 Sep 2012 09:03:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932198Ab2IUJD2 (ORCPT ); Fri, 21 Sep 2012 05:03:28 -0400 Received: from mga01.intel.com ([192.55.52.88]:12182 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932195Ab2IUJD1 (ORCPT ); Fri, 21 Sep 2012 05:03:27 -0400 Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga101.fm.intel.com with ESMTP; 21 Sep 2012 02:03:26 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.80,460,1344236400"; d="scan'208";a="224809078" Received: from dr3-desktop.iind.intel.com ([10.223.107.36]) by fmsmga001.fm.intel.com with ESMTP; 21 Sep 2012 02:03:24 -0700 From: Durgadoss R To: lenb@kernel.org, rui.zhang@intel.com Cc: linux-acpi@vger.kernel.org, Durgadoss R Subject: [PATCH] Thermal: Provide option to choose default thermal governor Date: Fri, 21 Sep 2012 14:32:24 +0530 Message-Id: <1348218144-6845-1-git-send-email-durgadoss.r@intel.com> X-Mailer: git-send-email 1.7.9.5 Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org This patch provides option to choose the default thermal governor. If no option is provided, the step_wise governor is selected by default. Signed-off-by: Durgadoss R --- drivers/thermal/Kconfig | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/drivers/thermal/Kconfig b/drivers/thermal/Kconfig index 040c626..c0e11aa 100644 --- a/drivers/thermal/Kconfig +++ b/drivers/thermal/Kconfig @@ -71,3 +71,36 @@ config USER_SPACE depends on THERMAL help Enable this to let the user space manage the platform thermals. + +choice + prompt "Default Thermal governor" + depends on THERMAL + default THERMAL_DEFAULT_GOV_STEP_WISE + help + This option sets which thermal governor shall be loaded at + startup. If in doubt, select 'step_wise'. + +config THERMAL_DEFAULT_GOV_STEP_WISE + bool "step_wise" + select STEP_WISE + help + Use the step_wise governor as default. This throttles the + devices one step at a time. + +config THERMAL_DEFAULT_GOV_FAIR_SHARE + bool "fair_share" + select FAIR_SHARE + help + Use the fair_share governor as default. This throttles the + devices based on their 'contribution' to a zone. The + contribution should be provided through platform data. + +config THERMAL_DEFAULT_GOV_USER_SPACE + bool "user_space" + select USER_SPACE + help + Select this if you want to let the user space manage the + platform thermals. +endchoice + +