diff mbox

[1/2] Thermal: Introduce THERMAL_TREND_RAISE_FULL and and THERMAL_TREND_DROP_FULL

Message ID 1353313272.6468.3.camel@rzhang1-mobl4 (mailing list archive)
State Accepted, archived
Delegated to: Zhang Rui
Headers show

Commit Message

Zhang, Rui Nov. 19, 2012, 8:21 a.m. UTC
From cd05abc4929c21275e3674fb303ca6007f8415a0 Mon Sep 17 00:00:00 2001
From: Zhang Rui <rui.zhang@intel.com>
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 <rui.zhang@intel.com>
---
 include/linux/thermal.h |    2 ++
 1 file changed, 2 insertions(+)

Comments

durgadoss.r@intel.com Nov. 19, 2012, 11:19 a.m. UTC | #1
Hi Rui/Amit,

This patch looks fine and gives what we need in a simple way :-)

> -----Original Message-----

> From: Zhang, Rui

> Sent: Monday, November 19, 2012 1:51 PM

> To: Linux PM list

> Cc: Zhang, Rui; Amit Kachhap; R, Durgadoss

> Subject: [PATCH 1/2] Thermal: Introduce THERMAL_TREND_RAISE_FULL and

> and THERMAL_TREND_DROP_FULL

> 

> From cd05abc4929c21275e3674fb303ca6007f8415a0 Mon Sep 17 00:00:00 2001

> From: Zhang Rui <rui.zhang@intel.com>

> 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.


typo 'temperature'. 

> 

> 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.

> 


Reviewed-by: Durgadoss R <durgadoss.r@intel.com>


Thanks,
Durga

> Signed-off-by: Zhang Rui <rui.zhang@intel.com>

> ---

>  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 */

> --

> 1.7.9.5

> 

>
diff mbox

Patch

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 */