summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorRong Dian <b38775@freescale.com>2012-08-21 15:07:42 +0800
committerRong Dian <b38775@freescale.com>2012-08-21 15:45:34 +0800
commit759217f29c354198cd26df414e989f4f632c2c5b (patch)
tree88a75db7ebf748d0b46cfe5cb910864a56c07da7 /drivers
parent1d80bd0d43df0561cf64d062a501aabe8a9cd44f (diff)
ENGR00220848 imx6 thermal: export thermal hot variable for GPU
export thermal hot variable for GPU Signed-off-by: Rong Dian <b38775@freescale.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mxc/thermal/thermal.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/mxc/thermal/thermal.c b/drivers/mxc/thermal/thermal.c
index 0f4cfb8304ce..6f3c7a912170 100644
--- a/drivers/mxc/thermal/thermal.c
+++ b/drivers/mxc/thermal/thermal.c
@@ -152,6 +152,8 @@ static const struct anatop_device_id thermal_device_ids[] = {
{ANATOP_THERMAL_HID},
{""},
};
+int thermal_hot;
+EXPORT_SYMBOL(thermal_hot);
enum {
DEBUG_USER_STATE = 1U << 0,
@@ -584,6 +586,7 @@ static int anatop_thermal_notify(struct thermal_zone_device *thermal, int trip,
printk(KERN_WARNING "thermal_notify: trip_critical reached!\n");
arch_reset(mode, cmd);
} else if (trip_type == THERMAL_TRIP_HOT) {
+ thermal_hot = 1;
printk(KERN_DEBUG "thermal_notify: trip_hot reached!\n");
type = ANATOP_THERMAL_NOTIFY_HOT;
/* if temperature increase, continue to detach secondary CPUs*/
@@ -598,6 +601,7 @@ static int anatop_thermal_notify(struct thermal_zone_device *thermal, int trip,
printk(KERN_INFO "No secondary CPUs detached!\n");
full_run = false;
} else {
+ thermal_hot = 0;
if (!full_run) {
temperature_cooling = 0;
if (cooling_cpuhotplug)