diff options
author | Bai Ping <b51503@freescale.com> | 2015-06-26 22:21:38 +0800 |
---|---|---|
committer | Nitin Garg <nitin.garg@freescale.com> | 2015-09-17 09:23:46 -0500 |
commit | 5d5cc106dc435d7915fd0b1dc857af2ee5de5ce3 (patch) | |
tree | 468bda7038647f8dafc931cdb718fab5082acbc0 /include | |
parent | 3b9c15095c91001ca4314bbbe43de8af94e2f224 (diff) |
MLK-11178-01 thermal: add a check to avoid orderly_poweroff twice
When temperature >= the 'critical_trip' temperature, the common
framework code will call 'orderly_poweroff' function to power off
the system. During the power off procedure the thermal framework
will go on polling the temp, this will lead to recall the
'orderly_poweroff' again. In the first poweroff flow, some system
resource has been freezed, then if the secondary 'orderly_poweroff'
frees the resource again, it will lead to kernel dump.
Signed-off-by: Bai Ping <b51503@freescale.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/thermal.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/thermal.h b/include/linux/thermal.h index f7e11c7ea7d9..3c4988d22107 100644 --- a/include/linux/thermal.h +++ b/include/linux/thermal.h @@ -182,6 +182,7 @@ struct thermal_zone_device { struct mutex lock; /* protect thermal_instances list */ struct list_head node; struct delayed_work poll_queue; + bool poweroff; }; /* Structure that holds thermal governor information */ |