From patchwork Tue Nov 8 05:09:16 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eduardo Valentin X-Patchwork-Id: 9416503 X-Patchwork-Delegate: rui.zhang@intel.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A2F1860512 for ; Tue, 8 Nov 2016 05:12:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9342028B99 for ; Tue, 8 Nov 2016 05:12:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 86EA528B9B; Tue, 8 Nov 2016 05:12:25 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 321DC28B99 for ; Tue, 8 Nov 2016 05:12:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752933AbcKHFLI (ORCPT ); Tue, 8 Nov 2016 00:11:08 -0500 Received: from mail-pf0-f193.google.com ([209.85.192.193]:33034 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752389AbcKHFLF (ORCPT ); Tue, 8 Nov 2016 00:11:05 -0500 Received: by mail-pf0-f193.google.com with SMTP id 144so9693711pfv.0; Mon, 07 Nov 2016 21:11:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=aXGX/8NWuaEAYiuZbuXq+en/xIn3P1YH7NvyKLm6Z+U=; b=HtP5z48tLWTtK4tjpPhlW6LhqGlYQZYxpUHCN3kz3WFc+bXaSS2CjiEF/6mvosdPfm zE4Z3+QaEZYwYWhIAH3OPFB/1f+/HToRi4nrwHVx7moAVEjTYALa2+eI5gcryNd2ZvAe f0WBodoB5qt+1PM0CSq/X5dB/JAgTKEQzjfDO3Yp6I0/r4QPNYXGnXgmHwZAsgpzsyEP QaoOI5QH72UuKYdpHorlEQEr6xkho3M+MIw8Fbg+hKQC/g7JgGvJksPzXCXHCG+82LJJ Xcjlo+2qCpJuYK2CyU7TMJReoK5t97zJi2vDjGBHeNwURGVoeg833DujneLjszLgEs93 FagA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=aXGX/8NWuaEAYiuZbuXq+en/xIn3P1YH7NvyKLm6Z+U=; b=mHasi8AmZjp2YQAr1mR+p9vZ1XxC5vTyRbei6KOncqP7aKzYJ2zP8D7JpvwTwRKw91 s7ArZXaYMR9EIEKsH9xVHamCDyCYNe8wYeF19VdZV9doQ0CwD+ykHspjvEfNofshm2cl oJqWIUb+R9GW0bDQEB/Zf/Lv1Nt5quoo//6NanLE/Zgvaz+maYT89boowjw56SjDB88H lImO2FHlEsUYW+/ZGThunuJlGKK+xJX6Io/Gyg2o39GdQugrDWqliLcaZi0d0GZL6hJD UljuDns5vpBJTnUo1N7ehzk32YtxPyabpHE4/8QqdbmODiMzNSvJA3ilpkkjYkIWTc42 l0Iw== X-Gm-Message-State: ABUngveqjZ1/fohmUGGjfl9cqYLLXLWz5qq0iFQ/M5K0s7URiQURt+o230bAgntfeM6a8w== X-Received: by 10.99.149.90 with SMTP id t26mr8095138pgn.29.1478581864390; Mon, 07 Nov 2016 21:11:04 -0800 (PST) Received: from localhost ([2601:647:4401:a2f0:7256:81ff:febd:926d]) by smtp.gmail.com with ESMTPSA id po8sm35095412pab.20.2016.11.07.21.11.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 07 Nov 2016 21:11:03 -0800 (PST) From: Eduardo Valentin To: Rui Zhang Cc: LKML , Linux PM , Eduardo Valentin Subject: [PATCHv2 38/49] thermal: core: add a comment describing the power actor section Date: Mon, 7 Nov 2016 21:09:16 -0800 Message-Id: <1478581767-7009-39-git-send-email-edubezval@gmail.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1478581767-7009-1-git-send-email-edubezval@gmail.com> References: <1478581767-7009-1-git-send-email-edubezval@gmail.com> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Simply marking the power actor section and adding a comment describing it. Cc: Zhang Rui Cc: linux-pm@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_core.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/thermal/thermal_core.c b/drivers/thermal/thermal_core.c index bf108db..e9e6bb9 100644 --- a/drivers/thermal/thermal_core.c +++ b/drivers/thermal/thermal_core.c @@ -461,6 +461,13 @@ static void thermal_zone_device_check(struct work_struct *work) thermal_zone_device_update(tz, THERMAL_EVENT_UNSPECIFIED); } +/* + * Power actor section: interface to power actors to estimate power + * + * Set of functions used to interact to cooling devices that know + * how to estimate their devices power consumption. + */ + /** * power_actor_get_max_power() - get the maximum power that a cdev can consume * @cdev: pointer to &thermal_cooling_device