Received: by 10.223.176.5 with SMTP id f5csp469492wra; Wed, 7 Feb 2018 02:17:41 -0800 (PST) X-Google-Smtp-Source: AH8x226c3O9/Rz1TY8s7xbS+gj0XeMmTG8DRDgKJAf8PLVRVNATa9Xt1i2MK9nOzo8qFQIJPnIAK X-Received: by 10.99.110.7 with SMTP id j7mr3042604pgc.156.1517998661092; Wed, 07 Feb 2018 02:17:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517998661; cv=none; d=google.com; s=arc-20160816; b=KCQePG/heiiO1b7+fBy87vR4dfVOv6Gf7IE2kA0nHY+gksILAYOFprNYJRgjV5Lsc+ HHuZ1YTa2Tz+UHN6p1eHSrEh8ChnE11BcPnJTRQSA/iJzN1wwfZN35/eFWb4ylQJf5Yu 7mzajboTmJYG1cDqSQX2s0Hp9UWkj7axMHZa8KLAO0cCPOcnsOvOg1sTWdAzxs0Kr2XK sWhY+fBtUvowh4ruCgY6NPE1+nB7WfyDtwa5ymlfLscnK+XEkMZd/QKOK4VJtCxBwiJj /QVECNLClBg1TAWe52ZnQ62gf16XtHoxc/0C50vHzEgO0j+QS/gd6MR6AqGhV5PArgu0 NKhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=+Kh+PuFHs2e8PU31wRx0KY/N1Ycb6gto5vn61IxpgFQ=; b=r7qpvV2aniPBM3XyvH1Up0yvRQ8wnGBegaleWCrko8UxBJuyTMCehPBx/XVW2zfcRx YiiQ1TKsWe/TFa0sfmneNLczLSE+5Soe2axdJq1RQeTOnKukzb8cr/sWfsZcrhQLQymO MSOTrZymBQ81AU6RE2kDLUvFCnKoLystgPg2LuNo+nlRJGQqXGo2fTxoMSM8XyabNVCb 4cT/8f8ETzbyoMH56269rObureUf6yntD5U9adaSYpC0C68Ydnrhdkt3nXGb0MddThPb g/O2M32WqkRqBY32QaBxqgHt/5pSrnnccWramleuBm5pI2T6P6RxaWE8vk/yN0b6BIJ9 nhtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OfkyIqoV; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a17si745136pgn.669.2018.02.07.02.17.26; Wed, 07 Feb 2018 02:17:41 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OfkyIqoV; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753764AbeBGKP5 (ORCPT + 99 others); Wed, 7 Feb 2018 05:15:57 -0500 Received: from mail-wm0-f66.google.com ([74.125.82.66]:39810 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753376AbeBGKPz (ORCPT ); Wed, 7 Feb 2018 05:15:55 -0500 Received: by mail-wm0-f66.google.com with SMTP id b21so2218847wme.4 for ; Wed, 07 Feb 2018 02:15:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=+Kh+PuFHs2e8PU31wRx0KY/N1Ycb6gto5vn61IxpgFQ=; b=OfkyIqoVNKTFVN7w9hNBzGHM4hyYqba2h/UbxHh5zM4D6dgGC6J6LxZnOnqGyYBioh F/OZcprzHS0zlXRl6YAvmASevgEk+aiVHp8rriTxHsFOjNKRDCzxmLcyplAiz2zCPwKU 6KNUfd4eq8i5zB4iS2qAJieEWYUqYhsaxTyCI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=+Kh+PuFHs2e8PU31wRx0KY/N1Ycb6gto5vn61IxpgFQ=; b=ewAXrjjd2M5NrfaV/FkTom+spLMMe+tACmci4egkyaAwUlz0YVbHHVSGkHfr5XFmgR VWsA0FNDcxMrbrqYTZXliQbFZOUb/oux4h6lZWWUSJCplBx53HixWPRY4U2SdfqB0cRm rw+iZ+2qD5VjiynlOCp8H/vgp7uwb/yqIIEOEu/S05dx0aBsIe9TLjgGVJ7twzLGniHT ZTavOqTnMeUfdZkcfKmfSBMGhyXT8PVqrRZwan9bMCo5iBSXvvbxyfwbqRneGTDcqkkP Ai33WSiFOoSdfUQxGbyfSTp+PLbxcajeg3Kd6HcX/sLAmIpqLmrDadW3y8z+7gj+sy9f mRuQ== X-Gm-Message-State: APf1xPCb3FowOnM4RupBPJEEmCuwFvdugZ/JPV3XCReJTsome4R2oLK1 NCsIPv2ymRjjo8avw2eyveIEPw== X-Received: by 10.80.217.10 with SMTP id t10mr7693795edj.171.1517998554049; Wed, 07 Feb 2018 02:15:54 -0800 (PST) Received: from [192.168.1.75] (lft31-1-88-121-166-205.fbx.proxad.net. [88.121.166.205]) by smtp.googlemail.com with ESMTPSA id h1sm1065663edb.95.2018.02.07.02.15.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 07 Feb 2018 02:15:53 -0800 (PST) Subject: Re: [PATCH 4/8] thermal/drivers/Kconfig: Convert the CPU cooling device to a choice To: Viresh Kumar Cc: edubezval@gmail.com, kevin.wangtao@linaro.org, leo.yan@linaro.org, vincent.guittot@linaro.org, amit.kachhap@gmail.com, linux-kernel@vger.kernel.org, Zhang Rui , "open list:THERMAL" References: <1516721671-16360-1-git-send-email-daniel.lezcano@linaro.org> <1516721671-16360-5-git-send-email-daniel.lezcano@linaro.org> <20180207090448.GP28462@vireshk-i7> From: Daniel Lezcano Message-ID: <4d66ce4f-c8eb-092a-04b5-a705793a1796@linaro.org> Date: Wed, 7 Feb 2018 11:15:52 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180207090448.GP28462@vireshk-i7> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/02/2018 10:04, Viresh Kumar wrote: > On 23-01-18, 16:34, Daniel Lezcano wrote: >> The next changes will add new way to cool down a CPU. In order to >> sanitize and make the overall cpu cooling code consistent and robust >> we must prevent the cpu cooling devices to co-exists with the same >> purpose at the same time in the kernel. >> >> Make the CPU cooling device a choice in the Kconfig, so only one CPU >> cooling strategy can be chosen. >> >> Signed-off-by: Daniel Lezcano >> --- >> drivers/thermal/Kconfig | 20 +++++++++++++++++--- >> 1 file changed, 17 insertions(+), 3 deletions(-) >> >> diff --git a/drivers/thermal/Kconfig b/drivers/thermal/Kconfig >> index 315ae29..925e73b 100644 >> --- a/drivers/thermal/Kconfig >> +++ b/drivers/thermal/Kconfig >> @@ -142,17 +142,31 @@ config THERMAL_GOV_POWER_ALLOCATOR >> allocating and limiting power to devices. >> >> config CPU_THERMAL >> - bool "generic cpu cooling support" >> - depends on CPU_FREQ >> + bool "Generic cpu cooling support" >> depends on THERMAL_OF >> help >> + Enable the CPU cooling features. If the system has no active >> + cooling device available, this option allows to use the CPU >> + as a cooling device. >> + >> +choice >> + prompt "CPU cooling strategies" >> + depends on CPU_THERMAL >> + default CPU_FREQ_THERMAL >> + help >> + Select the CPU cooling strategy. >> + >> +config CPU_FREQ_THERMAL > > Perhaps you should start using this macro in code in this patch > itself. Do you mean s/CPU_THERMAL/CPU_FREQ_THERMAL/ in include/linux/cpu_cooling.h ? -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog