From patchwork Sat Sep 26 22:05:07 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: srinivas pandruvada X-Patchwork-Id: 7272261 X-Patchwork-Delegate: rui.zhang@intel.com Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 6094CBF036 for ; Sat, 26 Sep 2015 22:05:59 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C8A152064B for ; Sat, 26 Sep 2015 22:05:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 053392065F for ; Sat, 26 Sep 2015 22:05:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932242AbbIZWFw (ORCPT ); Sat, 26 Sep 2015 18:05:52 -0400 Received: from mga02.intel.com ([134.134.136.20]:4616 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932491AbbIZWFm (ORCPT ); Sat, 26 Sep 2015 18:05:42 -0400 Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga101.jf.intel.com with ESMTP; 26 Sep 2015 15:05:40 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.17,593,1437462000"; d="scan'208";a="652894276" Received: from spandruv-desk3.jf.intel.com ([10.7.199.153]) by orsmga003.jf.intel.com with ESMTP; 26 Sep 2015 15:05:39 -0700 From: Srinivas Pandruvada To: jic23@kernel.org, rui.zhang@intel.com, edubezval@gmail.com, linux-pm@vger.kernel.org, linux-iio@vger.kernel.org Cc: Srinivas Pandruvada Subject: [PATCH 2/6] thermal: documentation update Date: Sat, 26 Sep 2015 15:05:07 -0700 Message-Id: <1443305111-28272-3-git-send-email-srinivas.pandruvada@linux.intel.com> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1443305111-28272-1-git-send-email-srinivas.pandruvada@linux.intel.com> References: <1443305111-28272-1-git-send-email-srinivas.pandruvada@linux.intel.com> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Spam-Status: No, score=-7.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 Added description for thermal_zone_device_update, which is already used by thermal core and client drivers. Signed-off-by: Srinivas Pandruvada --- Documentation/thermal/sysfs-api.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Documentation/thermal/sysfs-api.txt b/Documentation/thermal/sysfs-api.txt index 10f062e..16770f0 100644 --- a/Documentation/thermal/sysfs-api.txt +++ b/Documentation/thermal/sysfs-api.txt @@ -494,3 +494,13 @@ platform data is provided, this uses the step_wise throttling policy. This function serves as an arbitrator to set the state of a cooling device. It sets the cooling device to the deepest cooling state if possible. + +5.5:thermal_zone_device_update: +This function is used by thermal core and thermal client drivers to trigger +temperature read and governor specific processing for thermal trip violation. +Using event type parameter, the caller can specify the reason for this call. +This reason can be +THERMAL_DEVICE_EVENT_NONE for unspecified reason +THERMAL_DEVICE_EVENT_THRESHOLD for temp threshold event +THERMAL_DEVICE_EVENT_TEMP_SAMPLE for new temperature sample notification +THERMAL_DEVICE_TRIP_TEMP_CHANGE for notifying trip point temperature change