From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S967363AbcA1NHJ (ORCPT ); Thu, 28 Jan 2016 08:07:09 -0500 Received: from arroyo.ext.ti.com ([192.94.94.40]:53936 "EHLO arroyo.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S967304AbcA1NGz (ORCPT ); Thu, 28 Jan 2016 08:06:55 -0500 From: Keerthy To: , , , , , CC: , , , , , , Subject: [PATCH 2/2] thermal: Use emergency_poweroff instead of orderly_poweroff for shutdown scenario Date: Thu, 28 Jan 2016 18:36:29 +0530 Message-ID: <1453986389-15887-3-git-send-email-j-keerthy@ti.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1453986389-15887-1-git-send-email-j-keerthy@ti.com> References: <1453986389-15887-1-git-send-email-j-keerthy@ti.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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