From patchwork Thu Dec 4 04:11:49 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 41891 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f69.google.com (mail-la0-f69.google.com [209.85.215.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 28C2D25E88 for ; Thu, 4 Dec 2014 04:13:19 +0000 (UTC) Received: by mail-la0-f69.google.com with SMTP id ge10sf6854562lab.8 for ; Wed, 03 Dec 2014 20:13:17 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:in-reply-to:references :sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=qswCX0xhBqNmgpZv67LTxKTTuWRW4njK79FqTUMG1uY=; b=Ujpt5WcYBW0qQnyjyJ4oEJvajHG5bc6XbzJuvcUf9j2wyaYPVQdQ5llIHLoHvxrzuO Q+lvQpJ7THZm+a0GiMnE/vpCTSGekjHq2RSC62tyVO3eB39bnX8WY3zndcIz5cEx8jit MEKC0h30McrLgMjRm+PKIofAPTDxn9RnWJKRpd0Yf6QBJRbwUtG/XtTrnMARNhJc1d1t ueenIbkNDRqtLvrJLEn9mYXx4I8sXMA37/BkLUmW7Yamp1gkcot33AHxEW5E2W3pO3GA h5w3MmbntErXqcPTbLpblZ21/YtbW8K+dSKbda1h0RKsyHdsNXjBxrU5RZFOwr05fJ52 2jAQ== X-Gm-Message-State: ALoCoQm4o2D0XSP2EwcrZ8zOW2wwRHXiTrSYZY9RhbVkDgS3VOVXR6ntB/BbIPyeQaKF4aMoWQlF X-Received: by 10.194.176.106 with SMTP id ch10mr135942wjc.6.1417666397650; Wed, 03 Dec 2014 20:13:17 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.205.10 with SMTP id lc10ls242656lac.22.gmail; Wed, 03 Dec 2014 20:13:17 -0800 (PST) X-Received: by 10.112.146.37 with SMTP id sz5mr7254268lbb.27.1417666397374; Wed, 03 Dec 2014 20:13:17 -0800 (PST) Received: from mail-lb0-f180.google.com (mail-lb0-f180.google.com. [209.85.217.180]) by mx.google.com with ESMTPS id aq3si24626899lbc.78.2014.12.03.20.13.17 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 03 Dec 2014 20:13:17 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.180 as permitted sender) client-ip=209.85.217.180; Received: by mail-lb0-f180.google.com with SMTP id l4so13108371lbv.39 for ; Wed, 03 Dec 2014 20:13:17 -0800 (PST) X-Received: by 10.152.43.103 with SMTP id v7mr7246571lal.29.1417666397257; Wed, 03 Dec 2014 20:13:17 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.184.201 with SMTP id ew9csp781037lbc; Wed, 3 Dec 2014 20:13:16 -0800 (PST) X-Received: by 10.70.15.68 with SMTP id v4mr14560382pdc.21.1417666395720; Wed, 03 Dec 2014 20:13:15 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id df1si18139882pdb.237.2014.12.03.20.13.15 for ; Wed, 03 Dec 2014 20:13:15 -0800 (PST) Received-SPF: none (google.com: linux-pm-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752976AbaLDENO (ORCPT + 12 others); Wed, 3 Dec 2014 23:13:14 -0500 Received: from mail-pd0-f174.google.com ([209.85.192.174]:35105 "EHLO mail-pd0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752967AbaLDENN (ORCPT ); Wed, 3 Dec 2014 23:13:13 -0500 Received: by mail-pd0-f174.google.com with SMTP id w10so16763598pde.19 for ; Wed, 03 Dec 2014 20:13:13 -0800 (PST) X-Received: by 10.68.65.16 with SMTP id t16mr22071710pbs.70.1417666393073; Wed, 03 Dec 2014 20:13:13 -0800 (PST) Received: from localhost ([122.166.92.172]) by mx.google.com with ESMTPSA id ca3sm24365853pbb.84.2014.12.03.20.13.11 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 03 Dec 2014 20:13:12 -0800 (PST) From: Viresh Kumar To: linux-pm@vger.kernel.org, edubezval@gmail.com Cc: linaro-kernel@lists.linaro.org, rui.zhang@intel.com, amit.daniel@samsung.com, javi.merino@arm.com, Viresh Kumar Subject: [PATCH V2 07/26] thermal: cpu_cooling: Add comment to clarify relation between cooling state and frequency Date: Thu, 4 Dec 2014 09:41:49 +0530 Message-Id: <9bbfd5e1683a89aa5016704a09e13796a89b6407.1417664938.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.0.3.693.g996b0fd In-Reply-To: References: In-Reply-To: References: Sender: linux-pm-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: viresh.kumar@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.180 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , This wasn't explained well anywhere and should be clearly specified. Lets add a top level comment for this. Signed-off-by: Viresh Kumar --- drivers/thermal/cpu_cooling.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/drivers/thermal/cpu_cooling.c b/drivers/thermal/cpu_cooling.c index cc10641..a5a9317 100644 --- a/drivers/thermal/cpu_cooling.c +++ b/drivers/thermal/cpu_cooling.c @@ -28,6 +28,20 @@ #include #include +/* + * Cooling state <-> CPUFreq frequency + * + * Cooling states are translated to frequencies throughout this driver and this + * is the relation between them. + * + * Highest cooling state corresponds to lowest possible frequency. + * + * i.e. + * level 0 --> 1st Max Freq + * level 1 --> 2nd Max Freq + * ... + */ + /** * struct cpufreq_cooling_device - data for cooling device with cpufreq * @id: unique integer value corresponding to each cpufreq_cooling_device