Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1320649
| From | Keerthy <j-keerthy@ti.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 2/2] thermal: Use emergency_poweroff instead of orderly_poweroff for shutdown scenario |
| Date | 2016-01-28 14:10 +0100 |
| Message-ID | <qVUuK-3R3-21@gated-at.bofh.it> (permalink) |
| References | <qVUuJ-3R3-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Currently when the system reaches dangerously high temperatures we are calling orderly_poweroff function to gracefully shutdown the user space and then power off the system. In the probe phase the orderly_poweroff might fail leaving the system running at dangerously high temperatures. Hence calling the emergency_poweroff function which shuts down the system after a configurable period of time. Signed-off-by: Keerthy <j-keerthy@ti.com> --- drivers/thermal/thermal_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/thermal/thermal_core.c b/drivers/thermal/thermal_core.c index a0a8fd1..220fc94 100644 --- a/drivers/thermal/thermal_core.c +++ b/drivers/thermal/thermal_core.c @@ -446,7 +446,7 @@ static void handle_critical_trips(struct thermal_zone_device *tz, dev_emerg(&tz->device, "critical temperature reached(%d C),shutting down\n", tz->temperature / 1000); - orderly_poweroff(true); + emergency_poweroff(); } } -- 1.9.1
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 0/2] reboot: Introduce emergency_poweroff function Keerthy <j-keerthy@ti.com> - 2016-01-28 14:10 +0100
[PATCH 1/2] reboot: Introduce emergency poweroff function Keerthy <j-keerthy@ti.com> - 2016-01-28 14:10 +0100
[PATCH 2/2] thermal: Use emergency_poweroff instead of orderly_poweroff for shutdown scenario Keerthy <j-keerthy@ti.com> - 2016-01-28 14:10 +0100
Re: [PATCH 0/2] reboot: Introduce emergency_poweroff function One Thousand Gnomes <gnomes@lxorguk.ukuu.org.uk> - 2016-01-28 14:30 +0100
Re: [PATCH 0/2] reboot: Introduce emergency_poweroff function Keerthy <a0393675@ti.com> - 2016-01-29 02:50 +0100
csiph-web