Received: by 10.223.176.5 with SMTP id f5csp2449953wra; Thu, 1 Feb 2018 00:26:14 -0800 (PST) X-Google-Smtp-Source: AH8x225Uocpk7eMk6DJxtYVxCq/TnnsLQZu3vxjuI/niK84xtxmtNxvGyvZp5kBLs0rC/2YzgovZ X-Received: by 10.98.218.81 with SMTP id w17mr1616005pfl.161.1517473574343; Thu, 01 Feb 2018 00:26:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517473574; cv=none; d=google.com; s=arc-20160816; b=LYyYQsgHPhzsldz2CVVT6mQJNjzQKhZluJSufOT1qKR8Oy0VhLgi94+GNdb8dUnriX 2QhOWukSR++9GPxVbIKhq2pO5Jhae6aEMrFDFc6bXS/AeeyGA5H9fWRq+kbArR/08poS qizu5UCC2NRfQd7EFbQHODHhgnBcd7rw6iGL5aw4lvImLqNnUqOHO97Hri/rhIWgn76+ xfEdkOkWpj4Fr2VPW6XQahq7cLCxjgNLfYCLohrmexjbnR3iH0+uS4haVmqW/rOP38f+ jj9AsoKD9TaOU4qBcQ08xLn5mVVHQh7NkfxlB7bABzP+3ucb7BdbnMu3Fvv3Xrl3JVoI 9oHA== 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=Jtpjpw/YrvV5XSLi78oQpw0uqlrg4EWQgeGzx3WzLqU=; b=vaw20BlJWLLB3ErF8gvmDn2dA8CI+Xebpt0dF0zFsXyQjJx4w3TJIdFtDNfK5WN1IP mZNsEJEC/n5a6DJSSxSkD5IQM8mdOmcNHxbCVB7Vxy8FVShSTC7BCtFJMQsfKtGtOUSI Krz0ZPFMoG5dosspO2LKKAXMo5uhkeHs6yjdzYmPowP+71VYGZda9yiDw8J6ToZTsUtC 3Hfhsumt7WtlH2RCiCYfh1XbTdXgEZSt7+yUTgpCNm0qR3s4WCH8Bo325CKKsa8X7vKz qN2SKgYUVnWP2EWzwwfB7iFm240AQ49UvRtOP8E11Wnopr5+5lEncQRcstYGCGJJPtR+ BHtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PZdiKgEH; 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 t26si1577691pfh.373.2018.02.01.00.25.59; Thu, 01 Feb 2018 00:26:14 -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=PZdiKgEH; 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 S1751972AbeBAIZg (ORCPT + 99 others); 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 Received: by mail-wm0-f66.google.com with SMTP id i186so4030358wmi.4 for ; Thu, 01 Feb 2018 00:25:33 -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=Jtpjpw/YrvV5XSLi78oQpw0uqlrg4EWQgeGzx3WzLqU=; b=PZdiKgEHNNC0sW/2wAgrEg3cRIzDqA/lRn/iu/6G9q9VmGbEOUFuYWtmiCAUwzBH7/ Emti3JXYdDYwaQ9hqgYS7MICPZ4vAcYFHLMzIQ8FbSpFfb8p33qtHn+0fSmfcyuHn1OR pzpMmUyqISn7rCs0Gj1qojB5LPn3Cad9U4uTQ= 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=Jtpjpw/YrvV5XSLi78oQpw0uqlrg4EWQgeGzx3WzLqU=; b=s7fMe2Jc/cEvvJhb3jDhoqAA0QCgZ1JFacRj0nr7ithBK1WIQWv9hM9uDqFiQgWVYa 3CboRzDljmCU2s+jOM95wN6dHjKjB+kaTSPKsGUM93dU8xCHsyvafbB/a4y95akX6Czy u1MAdSbnLUjmJufKtxcLJdq1c+ica4UQ9rhrYmUxq/RjC2JPwM8xaSj/WSz5FSwWtGLC +egpoTQSU5zOkSRwL53MofsV+95zD4Lbbr7S1Al/KoC0vKV7hChRPHNISK0ia3s9jJCu QP4iL6Yku30vjvhIwRi7IT7ZIoBiv7n9Z4VOeNcigJ+yqYk3j2oidn3XIC+NgD2IEBWH De/g== X-Gm-Message-State: AKwxytfnVmbg606Ka6Z4+7UdjALgcIFb4YCFL5J7IRPO5eytU9PevHgR k4cGlDwGpaHkuNdhkb2bwllspQ== X-Received: by 10.28.238.217 with SMTP id j86mr25123342wmi.151.1517473532256; Thu, 01 Feb 2018 00:25:32 -0800 (PST) Received: from ?IPv6:2001:41d0:fe90:b800:81e6:679:450f:9963? ([2001:41d0:fe90:b800:81e6:679:450f:9963]) by smtp.googlemail.com with ESMTPSA id 19sm11821381wrx.73.2018.02.01.00.25.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 Feb 2018 00:25:31 -0800 (PST) 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 Precedence: bulk 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