From patchwork Wed May 4 06:02:44 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eduardo Valentin X-Patchwork-Id: 9010201 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 E07319F1C1 for ; Wed, 4 May 2016 06:04:14 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 15F112026F for ; Wed, 4 May 2016 06:04:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3A9D92027D for ; Wed, 4 May 2016 06:04:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757368AbcEDGDo (ORCPT ); Wed, 4 May 2016 02:03:44 -0400 Received: from mail-pf0-f171.google.com ([209.85.192.171]:36526 "EHLO mail-pf0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757325AbcEDGDl (ORCPT ); Wed, 4 May 2016 02:03:41 -0400 Received: by mail-pf0-f171.google.com with SMTP id c189so21832465pfb.3; Tue, 03 May 2016 23:03:41 -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=xUOEs3LfrMunZNpGcV1kGXhq79TZn2iRA8mYv4ZlIGY=; b=p4sJNi3/nKah1pr3QaYk2zRjeRWBkRxrdOjlj1kjedZlHLd2z+8HO56jSIZIbWcGCz ykg1OTEOHHjeRnJHcIuTgZKe8L+mK/pow5Ah2B/UtXyNUG8G8vLtSJkknNl4YO34MHpi fHLMzMzVadN5MYR31E57JHDl1Sa4y5XcS7eVXymMrgetVPpEmX6kDeK4Hegnph2zDwcB xoFXSGmCyrngrivgWiYMN66oV/XWn14isR9t69uyEA9MggxLx2TbG0RJgvNXFJiFGyO8 f01hafXaaCKqyrls911rXKFmK4rBR8WFdoeDqf+wjTGnn/3HkA3DTtZhZn8F4qwt/7Uf u4dw== 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=xUOEs3LfrMunZNpGcV1kGXhq79TZn2iRA8mYv4ZlIGY=; b=KSir3RXOp3vb9NKsjnhmBUOX1zL29EOjZrOAU4TSaUv/Adg865xAdzDDxX+2wBcfgU /3t1aHEvTt2HNKdQtO0IRzhZDicHeCgcA1/hC8t+4hokCgBCUSKQsPQpM1A9TK5HNc90 CEnvXLF0HUqikw9O8M0m7Z94dPZ3m2+t/5/cG/BJVMN/EBtRc98w1IVXzk/K1N19qZNy gCDJKj3v6u5S42CtLlsCVCMxZXkd37kwTyQQt54u3g2PlxNonuMkK3bSH+bfdfGAw/Oh fAPhaSOBzErxd5grqhlRM9eiL5qpcL1EAPRisE7Pm6YWP3qXfg5P5K1+PKUe0CONQy/e qzEg== X-Gm-Message-State: AOPr4FUWxv38ydOiGl0bzUqBM+isNXqhyds68wJyBj5WG7DcdXo/MI4XZrKCkvA2E4B+ug== X-Received: by 10.98.109.197 with SMTP id i188mr9623860pfc.88.1462341821239; Tue, 03 May 2016 23:03:41 -0700 (PDT) Received: from localhost ([2601:647:4203:c8e0:7256:81ff:febd:926d]) by smtp.gmail.com with ESMTPSA id 71sm2651134pfy.32.2016.05.03.23.03.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 03 May 2016 23:03:40 -0700 (PDT) From: Eduardo Valentin To: Rui Zhang Cc: Linux PM , LKML , Eduardo Valentin Subject: [PATCH 30/31] thermal: core: add a comment describing the power actor section Date: Tue, 3 May 2016 23:02:44 -0700 Message-Id: <1462341765-13268-31-git-send-email-edubezval@gmail.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1462341765-13268-1-git-send-email-edubezval@gmail.com> References: <1462341765-13268-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-Spam-Status: No, score=-8.9 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, 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 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 d552183..b6a94fa 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