From patchwork Thu Jan 28 13:06:29 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "J, KEERTHY" X-Patchwork-Id: 8149861 X-Patchwork-Delegate: rui.zhang@intel.com Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 372F19F38B for ; Thu, 28 Jan 2016 13:07:12 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 683552034C for ; Thu, 28 Jan 2016 13:07:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 79AC4202C8 for ; Thu, 28 Jan 2016 13:07:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965119AbcA1NHH (ORCPT ); Thu, 28 Jan 2016 08:07:07 -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 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id u0SD6gZW029227; Thu, 28 Jan 2016 07:06:42 -0600 Received: from DLEE71.ent.ti.com (dlee71.ent.ti.com [157.170.170.114]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id u0SD6g0f031211; Thu, 28 Jan 2016 07:06:42 -0600 Received: from dlep32.itg.ti.com (157.170.170.100) by DLEE71.ent.ti.com (157.170.170.114) with Microsoft SMTP Server id 14.3.224.2; Thu, 28 Jan 2016 07:06:41 -0600 Received: from ula0393675.apr.dhcp.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id u0SD6T8x031594; Thu, 28 Jan 2016 07:06:38 -0600 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 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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(); } }