From patchwork Tue May 31 06:18:45 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eduardo Valentin X-Patchwork-Id: 9143423 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 AF48260761 for ; Tue, 31 May 2016 06:23:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A43F3281ED for ; Tue, 31 May 2016 06:23:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 991542821C; Tue, 31 May 2016 06:23:39 +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 299FE281ED for ; Tue, 31 May 2016 06:23:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755929AbcEaGUl (ORCPT ); Tue, 31 May 2016 02:20:41 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:36678 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751462AbcEaGUi (ORCPT ); Tue, 31 May 2016 02:20:38 -0400 Received: by mail-pf0-f196.google.com with SMTP id 62so12153212pfd.3; Mon, 30 May 2016 23:20:38 -0700 (PDT) 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=NdOlfnftfxUo+1kbmq29Xyyy+TlGCQfY8QEf1oDPduA=; b=dMUfF4++7ePYRLfvcaXNluH8HXZWGZ1bCA2crDv1H6r2in5Eo29iJzCgQJr40Nmzwo KmRGVNpy4JmCpoFwquRk3mipB963nf/3Qmr04z1x+makHB2FKmMek8KLB3UHfKyHkP79 BFdFKnngFz0eFoRzMLVd99SfyVtWo5tch2LlJzkzYJZyU8wcOlPm4exlgqtgXzXZpGD2 8skBDQW63Z2zNX40kbhdrjBMSOJP6AYsu1qu7zzSO5+lICc9rHQSc+vqmXqKBU5v+32A psd3aG6uWr1y7oJx3Hv2QHnQm9ea4C5KrwyaXp4sGcTlwn5sV7gtG4uDeyw75sM5zoSH M/cQ== 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=NdOlfnftfxUo+1kbmq29Xyyy+TlGCQfY8QEf1oDPduA=; b=AG3kCX1r1yCSlNymaW/u613RMPC2CaMknRY5NK599ojLNfbhraSw20HRKeiZRrI3LA /WZJlZszoOrxYcLjzkoNs09Z+PAYP3OPQH0kLlzrE/pl37OdyjIAyb/HMeKITXrznJV6 FXJqI5yf/3GO0ssuB1ZRW9HFAZjw/9qhMm553XguNjeQ26caUug47SGZ5ztiYD45EPX9 +4NA9/oGRAllreEkcALqhRZlujNYLMXc02Tdg0+C+g3RRL25omKhJ7TkjBZUYXV2d7U1 dQHPmkm4lJ52unamnWqF9HZbi3VGNYkgfVIgwet8sV3P0FpLWHdR9PHFN+wEoGtVa6X7 PV0A== X-Gm-Message-State: ALyK8tI0ROSagoobYBmJllBrLmK9VrPjD6PuwSXSM4Caiup7n2Hw1R121zn9abFrlUljIQ== X-Received: by 10.98.100.83 with SMTP id y80mr52728287pfb.84.1464675637406; Mon, 30 May 2016 23:20:37 -0700 (PDT) Received: from localhost ([2601:b00:c501:3660:7256:81ff:febd:926d]) by smtp.gmail.com with ESMTPSA id qh5sm51700456pab.17.2016.05.30.23.20.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 30 May 2016 23:20:36 -0700 (PDT) From: Eduardo Valentin To: Rui Zhang Cc: Linux PM , LKML , Keerthy , Eduardo Valentin Subject: [PATCHv4 38/48] thermal: core: add a comment describing the power actor section Date: Mon, 30 May 2016 23:18:45 -0700 Message-Id: <1464675535-2433-39-git-send-email-edubezval@gmail.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1464675535-2433-1-git-send-email-edubezval@gmail.com> References: <1464675535-2433-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 063fb15..5ce6504 100644 --- a/drivers/thermal/thermal_core.c +++ b/drivers/thermal/thermal_core.c @@ -456,6 +456,13 @@ static void thermal_zone_device_check(struct work_struct *work) thermal_zone_device_update(tz); } +/* + * 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