]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00220848 imx6 thermal: export thermal hot variable for GPU
authorRong Dian <b38775@freescale.com>
Tue, 21 Aug 2012 07:07:42 +0000 (15:07 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:35:16 +0000 (08:35 +0200)
export thermal hot variable for GPU

Signed-off-by: Rong Dian <b38775@freescale.com>
drivers/mxc/thermal/thermal.c

index 0f4cfb8304ce23e5b81164a2e7939ae39d6b8994..6f3c7a912170a3c709c63ee6b076ac791f864f52 100644 (file)
@@ -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)