From patchwork Mon Nov 19 08:21:12 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Zhang, Rui" X-Patchwork-Id: 1763401 X-Patchwork-Delegate: rui.zhang@intel.com Return-Path: X-Original-To: patchwork-linux-pm@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 AC76DDFF38 for ; Mon, 19 Nov 2012 08:21:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753042Ab2KSIVZ (ORCPT ); Mon, 19 Nov 2012 03:21:25 -0500 Received: from mga11.intel.com ([192.55.52.93]:28718 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752829Ab2KSIVY (ORCPT ); Mon, 19 Nov 2012 03:21:24 -0500 Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP; 19 Nov 2012 00:21:24 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.83,277,1352102400"; d="scan'208,223";a="251221904" Received: from unknown (HELO [10.255.21.124]) ([10.255.21.124]) by fmsmga002.fm.intel.com with ESMTP; 19 Nov 2012 00:21:14 -0800 Message-ID: <1353313272.6468.3.camel@rzhang1-mobl4> Subject: [PATCH 1/2] Thermal: Introduce THERMAL_TREND_RAISE_FULL and and THERMAL_TREND_DROP_FULL From: Zhang Rui To: Linux PM list Cc: "Zhang, Rui" , Amit Kachhap , durga Date: Mon, 19 Nov 2012 16:21:12 +0800 X-Mailer: Evolution 3.2.3-0ubuntu6 Mime-Version: 1.0 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org From cd05abc4929c21275e3674fb303ca6007f8415a0 Mon Sep 17 00:00:00 2001 From: Zhang Rui Date: Mon, 19 Nov 2012 15:33:51 +0800 Subject: [PATCH 1/2] Introduce THERMAL_TREND_RAISE_FULL and THERMAL_TREND_DROP_FULL These two new thermal_trend types are used to tell the governor that the temeprature is raising/dropping quickly. Thermal cooling governors should handle this situation and make proper decisions, e.g. set cooling state to upper/lower limit directly instead of one step each time for step_wise governor. Signed-off-by: Zhang Rui Reviewed-by: Durgadoss R --- include/linux/thermal.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/thermal.h b/include/linux/thermal.h index 807f214..dcaa400 100644 --- a/include/linux/thermal.h +++ b/include/linux/thermal.h @@ -68,6 +68,8 @@ enum thermal_trend { THERMAL_TREND_STABLE, /* temperature is stable */ THERMAL_TREND_RAISING, /* temperature is raising */ THERMAL_TREND_DROPPING, /* temperature is dropping */ + THERMAL_TREND_RAISE_FULL, /* apply highest cooling action */ + THERMAL_TREND_DROP_FULL, /* apply lowest cooling action */ }; /* Events supported by Thermal Netlink */