Received: by 10.213.65.68 with SMTP id h4csp1510522imn; Wed, 4 Apr 2018 21:51:06 -0700 (PDT) X-Google-Smtp-Source: AIpwx49os4jQ3mdQcsmocJv56rJXNUY0lLVmnNkAEe+GPvL1aNPueh5d4ntz7b/9VkJUHEXgaZMj X-Received: by 10.101.83.7 with SMTP id m7mr13808233pgq.1.1522903866137; Wed, 04 Apr 2018 21:51:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522903866; cv=none; d=google.com; s=arc-20160816; b=vI6CqkVOcxpdjngNNhFo0Ddk/BHZTgZ+KSncX09sSClCyanD7IyuAacvNYpnX1vtqB RzRHpDfwfEnqS0mKx1G76VzKEq68mBYM9h4SLMLAhPiXTGMBx+vhecN7xZGvCNxlngMD xz+hsjfuf6futAHwtKAchpx0EVqIq/55C1mLAzBHsTHpmowwD+jyMdSj/S5CETL0Qack v7AytCWEWt8eAJoc7rQB07iWcjZjyilBYw9aqQgnGgDB3DAa3dJ8dRdaSEQgas+LNI02 PTzsngflJ6Dh+eIBKx1itOyXPAtkI4wuldqHFmwMz6621sSQ89VC1Z409lhjrsK1Y1fL xsnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=r52tnFLXcnByt/okglk1KH6MqFZDQuh4uxS/3hYbfO0=; b=Du+XJ07fZcOydMQWU9GIIAbrlLspDUMXyqabyiavZIgKHkhVnFgnVcVKp9XYorCL0i POAHhxogqBbIe6QgcBXX+dBFR+HaWqx8me7Am8ULDut6IoQ/Mq5RMsJMK8RKSgDKN1iM ELE9XvITplNDt6uUrV7ItIjtNx5vg/o/QqnPs8RkSyka/9O50bx89HUFLeSkCpw4K3tB 0EE6vy757BGZkJAdbzaOAOFhDIPNZlBl2TuVWoIaznx0+ctwA2xC1rkfv6T8Czn8Q+9M FheEL1sA7DgY66s+unLLF45l1+Zkdg03EGnttwHnCUeClYAQO8eak003BwqM/F8SIJDS lMuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EpDVBc+s; 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 3-v6si4925175plz.179.2018.04.04.21.50.51; Wed, 04 Apr 2018 21:51:06 -0700 (PDT) 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=EpDVBc+s; 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 S1751439AbeDEEtq (ORCPT + 99 others); Thu, 5 Apr 2018 00:49:46 -0400 Received: from mail-pl0-f41.google.com ([209.85.160.41]:46998 "EHLO mail-pl0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751038AbeDEEtp (ORCPT ); Thu, 5 Apr 2018 00:49:45 -0400 Received: by mail-pl0-f41.google.com with SMTP id 59-v6so14828692plc.13 for ; Wed, 04 Apr 2018 21:49:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=r52tnFLXcnByt/okglk1KH6MqFZDQuh4uxS/3hYbfO0=; b=EpDVBc+svvOLlpIQ5JbsiL4zY80uiutYw+a9G+8h82yzwD1nma/qmrCfbQD4ni3Kph evQocLZsbpDCwfASmtDd6ZvAxs187CeH0gQg0N3u3smtkDnqEuywKEOjZkc6z0ts/NnC EoQEygtj4xnWuIDXIWCb9zc+4T53iXLPPnbcU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=r52tnFLXcnByt/okglk1KH6MqFZDQuh4uxS/3hYbfO0=; b=QRXN6eKInto5JQ1A2UVhCnEiLGJryE9zbt+TqzEcIerk+rOmiI+Peak4L7bHAxpPL0 rqWv16db4JQy2pSze4TvB8Dwnnu4L/S0G55+JaT6n1rIqol5mGNjSAS4U3oNMWoj5KNX eqd9G7r0S5zWBie1cCYCgIHJ4NcAEQvfhJ5QiXWiOEJUUhsQnxgFfR+43KpsjP7gpIKj ndfyJizdQH8Nc9J1mx8sOk208lW6Em93g+bkjgCPwjtuz1gBmp/iwGOBvpQd43uFPkjT KfSp+Lk8axB1K4MsqtA8MJzzylU66i7/3Omjb4l8d1Z8aKJcdHUsuk9Y0X8cosaWcxjC G6tQ== X-Gm-Message-State: AElRT7GIizf8vdWf5aMo19tF3uyaBlk56XgyUeCT3QlyTQTA0Wrr4sfD pqKD5c1i15eApVsOAZyi/nNLBg== X-Received: by 2002:a17:902:6849:: with SMTP id f9-v6mr21902437pln.139.1522903784814; Wed, 04 Apr 2018 21:49:44 -0700 (PDT) Received: from localhost ([122.171.228.188]) by smtp.gmail.com with ESMTPSA id t25sm13454902pfj.187.2018.04.04.21.49.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 Apr 2018 21:49:43 -0700 (PDT) Date: Thu, 5 Apr 2018 10:19:41 +0530 From: Viresh Kumar To: Daniel Lezcano 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, javi.merino@kernel.org, rui.zhang@intel.com, daniel.thompson@linaro.org, linux-pm@vger.kernel.org Subject: Re: [PATCH V2 6/7] thermal/drivers/cpu_cooling: Introduce the cpu idle cooling driver Message-ID: <20180405044941.GK3572@vireshk-i7> References: <1519226968-19821-1-git-send-email-daniel.lezcano@linaro.org> <1519226968-19821-7-git-send-email-daniel.lezcano@linaro.org> <20180223073432.GF26947@vireshk-i7> <20180226043021.GK26947@vireshk-i7> <78504a65-d21a-eea0-d8af-6e12d5747b87@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <78504a65-d21a-eea0-d8af-6e12d5747b87@linaro.org> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04-04-18, 10:50, Daniel Lezcano wrote: > Mmh, that sounds very complex. May be it is simpler to count the number > of cluster and initialize the idle_cdev for each cluster and then go for > this loop with the cluster cpumask. Maybe not sure. I have had such code in the past and it was quite straight forward to understand :) You can go with whichever version you like. -- viresh