From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751976AbeBAIZg (ORCPT ); Thu, 1 Feb 2018 03:25:36 -0500 Received: from mail-wm0-f66.google.com ([74.125.82.66]:55183 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751831AbeBAIZd (ORCPT ); Thu, 1 Feb 2018 03:25:33 -0500 X-Google-Smtp-Source: AH8x227w2ZzLr9M+ltSEaRYPUEA6Ci1c4AYx3wCJntTwFxQjr0XteEOoKM+UFu4jeOGj1oZoltXq0w== Subject: Re: [PATCH 5/8] thermal/drivers/cpu_cooling: Introduce the cpu idle cooling driver To: Vincent Guittot Cc: Eduardo Valentin , Kevin Wangtao , Leo Yan , Amit Kachhap , viresh kumar , linux-kernel , Zhang Rui , Javi Merino , "open list:THERMAL" References: <1516721671-16360-1-git-send-email-daniel.lezcano@linaro.org> <1516721671-16360-6-git-send-email-daniel.lezcano@linaro.org> <11334876-ef8c-58fa-5e32-ab8499eebd7e@linaro.org> <6e776e6c-6f1e-b33b-58b7-b95410ca1f95@linaro.org> <22f4c4fc-fd74-b635-6859-7e2f599695f7@linaro.org> From: Daniel Lezcano Message-ID: <73836143-e335-f6a1-3c37-d3050dd7ddde@linaro.org> Date: Thu, 1 Feb 2018 09:25:29 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01/02/2018 08:57, Vincent Guittot wrote: > On 31 January 2018 at 16:27, Daniel Lezcano wrote: >> On 31/01/2018 10:56, Vincent Guittot wrote: >>> On 31 January 2018 at 10:50, Daniel Lezcano wrote: >>>> On 31/01/2018 10:46, Vincent Guittot wrote: >>>>> On 31 January 2018 at 10:33, Daniel Lezcano wrote: >>>>>> On 31/01/2018 10:01, Vincent Guittot wrote: >>>>>>> Hi Daniel, >>>>>>> >>>>>>> On 23 January 2018 at 16:34, Daniel Lezcano wrote: >>>>>> >>>>>> [ ... ] (please trim :) >>>>>> [ ... ] > struct cpuidle_cooling_device { > struct thermal_cooling_device *cdev; > struct cpumask *cpumask; > struct list_head node; > struct hrtimer timer; > struct kref kref; > atomic_t count; > unsigned int idle_cycle; > unsigned int state; > }; > > struct cpuidle_cooling_cpu { > struct task_struct *tsk; > wait_queue_head_t waitq; > }; > DECLARE_PER_CPU(struct cpuidle_cooling_cpu *, cpu_data); > > You continue to have cpuidle_cooling_device allocated dynamically per > cluster and added in the list but task and waitq are stored per cpu Ok. I will try that. -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog