From patchwork Fri Nov 28 09:44:01 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 41674 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ee0-f71.google.com (mail-ee0-f71.google.com [74.125.83.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 2117D244C2 for ; Fri, 28 Nov 2014 09:45:09 +0000 (UTC) Received: by mail-ee0-f71.google.com with SMTP id c13sf4042676eek.2 for ; Fri, 28 Nov 2014 01:45:08 -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=+8a5NjnWbSLOlUKxXLaOC+YauMA9sOWxAEHNfhmnZls=; b=UUmsdng3xX7EziE3xY+WKJ5llkyb26M+HmjfHVdfDRhvPU1Mibdvv5XTiXTNnzeXiP T9w1eLs0MK3ds28BkuvoMFZM0EF2b9dCQkP9G20MHqfejWBKQwl7b/PFPS+7lFw2mvmf aIbFoOutioCXkvm6rcqwW046ByWbbi5AcFead7/bCwjz1x+noN50r3yDX5N9M72fR569 dGVmLe3Wcu5AOrTQ3hoakrMF/W47JAHFxjfTXhMcBQJIW/Atw1ASxzxYEBMxBvdiS1jk NVd3pXxb3flaEPEQ8VqsVblqqy1SDn7BhyTMR0cBDjDe2tvuuoHII4Fi76Da9Tcyq2j9 kcGA== X-Gm-Message-State: ALoCoQlheo7FByv0DxQJiNVCENpUymgJNPDOheVMEvLfMKx0lgL3LLH2Gy5MibamzDktNiRj9XwS X-Received: by 10.112.147.131 with SMTP id tk3mr11796192lbb.2.1417167908372; Fri, 28 Nov 2014 01:45:08 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.26.200 with SMTP id n8ls935216lag.10.gmail; Fri, 28 Nov 2014 01:45:08 -0800 (PST) X-Received: by 10.152.37.6 with SMTP id u6mr30145993laj.74.1417167908142; Fri, 28 Nov 2014 01:45:08 -0800 (PST) Received: from mail-lb0-f175.google.com (mail-lb0-f175.google.com. [209.85.217.175]) by mx.google.com with ESMTPS id ze6si9455654lbb.75.2014.11.28.01.45.08 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 28 Nov 2014 01:45:08 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.175 as permitted sender) client-ip=209.85.217.175; Received: by mail-lb0-f175.google.com with SMTP id u10so5390193lbd.34 for ; Fri, 28 Nov 2014 01:45:08 -0800 (PST) X-Received: by 10.112.52.37 with SMTP id q5mr42368833lbo.32.1417167908052; Fri, 28 Nov 2014 01:45:08 -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 ew9csp60407lbc; Fri, 28 Nov 2014 01:45:07 -0800 (PST) X-Received: by 10.68.246.164 with SMTP id xx4mr71437501pbc.64.1417167906404; Fri, 28 Nov 2014 01:45:06 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id vj10si15336419pbc.138.2014.11.28.01.45.05 for ; Fri, 28 Nov 2014 01:45:06 -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 S1751695AbaK1JpE (ORCPT + 12 others); Fri, 28 Nov 2014 04:45:04 -0500 Received: from mail-pa0-f41.google.com ([209.85.220.41]:44073 "EHLO mail-pa0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751677AbaK1JpD (ORCPT ); Fri, 28 Nov 2014 04:45:03 -0500 Received: by mail-pa0-f41.google.com with SMTP id rd3so6579848pab.0 for ; Fri, 28 Nov 2014 01:45:03 -0800 (PST) X-Received: by 10.70.35.233 with SMTP id l9mr22353049pdj.107.1417167903116; Fri, 28 Nov 2014 01:45:03 -0800 (PST) Received: from localhost ([122.167.111.40]) by mx.google.com with ESMTPSA id lz6sm9360879pdb.88.2014.11.28.01.45.02 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 28 Nov 2014 01:45:02 -0800 (PST) From: Viresh Kumar To: linux-pm@vger.kernel.org, edubezval@gmail.com Cc: linaro-kernel@lists.linaro.org, rui.zhang@intel.com, Viresh Kumar Subject: [PATCH 07/26] cpu_cooling: Add comment to clarify relation between cooling state and frequency Date: Fri, 28 Nov 2014 15:14:01 +0530 Message-Id: <8a8a35afbdbc0e4408f494324e2d78195af0fdf7.1417167599.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.175 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 3ef9050..def0f21 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