From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Lezcano Subject: Re: [PATCH 5/8] thermal/drivers/cpu_cooling: Introduce the cpu idle cooling driver Date: Thu, 1 Feb 2018 09:25:29 +0100 Message-ID: <73836143-e335-f6a1-3c37-d3050dd7ddde@linaro.org> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from mail-wm0-f66.google.com ([74.125.82.66]:55899 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751925AbeBAIZd (ORCPT ); Thu, 1 Feb 2018 03:25:33 -0500 Received: by mail-wm0-f66.google.com with SMTP id 143so4011210wma.5 for ; Thu, 01 Feb 2018 00:25:33 -0800 (PST) In-Reply-To: Content-Language: en-US Sender: linux-pm-owner@vger.kernel.org List-Id: linux-pm@vger.kernel.org To: Vincent Guittot Cc: Eduardo Valentin , Kevin Wangtao , Leo Yan , Amit Kachhap , viresh kumar , linux-kernel , Zhang Rui , Javi Merino , "open list:THERMAL" 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