Received: by 10.223.185.116 with SMTP id b49csp2245400wrg; Sat, 24 Feb 2018 14:55:50 -0800 (PST) X-Google-Smtp-Source: AH8x227eiokytDmWhmEtsmqm6Nm8s3RfjT3IIzKnRQsQUTVexfopzOX5IDE9BeqEPoO7Sj5Jo37N X-Received: by 2002:a17:902:bc02:: with SMTP id n2-v6mr6066529pls.52.1519512950714; Sat, 24 Feb 2018 14:55:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519512950; cv=none; d=google.com; s=arc-20160816; b=FdDlcEchkysSOsJ/asGLEztbVof7ANB0GykmPDLs3ICRXqIFaDlM0PRxnPZkF9CDzV u9Zs+zJhqBAoOdiHK0RqHNQlAWbykYP19TqqperLBZD2YkOym56LDT8hfUyWFDQhlwdk KtnPtqdHW6IHe+uynZ+4OyXmVLSWIq2Zw4TRkf+HKAtPaOzKqw9ny7LOn0Dg6hTx3Vmy PILji37JLI3+baAY2WJNJKhdUa6iMcR52d/5hVOzojObAL6zFGZWjEQJMhoBJ5kKMZsH oNSbnh6itC+hwFdWAX4fmFV80GRHtFuEaFiI54pnLvaNWkyXi/xpch6oeQg7/Lxu2Nia 1sUQ== 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=R+qaX7P6l8kLgX+xa7eu91haZdvY77KK5+d10/BQZuU=; b=jmWGqdcpf8slMJ08zPxbGCj6sVrBq1QklqToJ4FUFvm3QnIuZwq866q3iQKxvJz1Zb j6CwX5cRxcYRcYgSLREt3i4p19RJLxgCXhzUHgV2KlXqbLKORMC7NS7LKsi5P0qkD1Pb gP+Rq9BSWJl+LkGnFI9UkULGrULfHG/JrOChR4OE/UsZ2gtKU9lcVWkYPY+kUa7kJvrS hU2aOiNLAz4ZOdeaDp/SUT3LffUPNwx+LGivK98tfMHRz/hV/qijSMTwhc3rtYW0dx/n Byqw4F5NQ5HwFICjTdX652W7BPSJN8F0FQz3s+eXdIYzAVXINH2utdeHd0x0SicAdXXU 8Ukg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iZwAMucW; 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 r24si2134111pgn.78.2018.02.24.14.55.36; Sat, 24 Feb 2018 14:55:50 -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=iZwAMucW; 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 S1751617AbeBXWyB (ORCPT + 99 others); Sat, 24 Feb 2018 17:54:01 -0500 Received: from mail-wr0-f195.google.com ([209.85.128.195]:37256 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751582AbeBXWx7 (ORCPT ); Sat, 24 Feb 2018 17:53:59 -0500 Received: by mail-wr0-f195.google.com with SMTP id z12so17544212wrg.4 for ; Sat, 24 Feb 2018 14:53:59 -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=R+qaX7P6l8kLgX+xa7eu91haZdvY77KK5+d10/BQZuU=; b=iZwAMucWrYmFjQ4bozowkXuqH0bgqT0BAKsHnnOI+yql/1Kgr5LbWhVhrrDWmyWrdL 72AgdxBzoovrWXo9eRNm8BSOLOENr2E2wUVYA3YdCfMn7Uno8nxLvsLCTruvBhEw3r+x TQQNJX2j7AgiOwFzkljqcH/ohcX2OGtC8kNp4= 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=R+qaX7P6l8kLgX+xa7eu91haZdvY77KK5+d10/BQZuU=; b=cxcWNU/2edCZHc+C/K5NqHQFpFCwkZ4V6bEC6LvsrZ1XqQbMuufsjMeQ5MTgRKnPZw 6vl3Ttc5BF+Cujs2QKLeXF2SOphrv8JHFmnaaBwGfdT1vkL6zQwoYMTnhNdfphTFBiem hcRZGbLxe5ee+LWY0uo9+iTAOIO7X7y+BagvEQ0ssPtfOD14Biqc3KxryLpOR77vgJi0 Cp1aOLN/OVvLPZ9DLlS+pbeoehyxnQUx5+nyw39zVVQg5wQRlULmbNvT2bAxIHbUl3w9 E/YeIuytIpjIMviUu0PslR0geAFo7X2VqcTixK+6/xk0JrEV3b6zvYvi+DgHFW7L2tJC arlw== X-Gm-Message-State: APf1xPDEg+oysMhu9CXE7dIbQer3oEYU/awpUXhIEO8WQeB0c8X5FFOz 70ryXnuzfYJoZrJ/HW5e8+Tbow== X-Received: by 10.223.169.161 with SMTP id b30mr5964056wrd.232.1519512838361; Sat, 24 Feb 2018 14:53:58 -0800 (PST) Received: from ?IPv6:2001:41d0:fe90:b800:74db:86cd:8643:bb85? ([2001:41d0:fe90:b800:74db:86cd:8643:bb85]) by smtp.googlemail.com with ESMTPSA id 204sm5441253wmx.0.2018.02.24.14.53.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 24 Feb 2018 14:53:57 -0800 (PST) Subject: Re: [PATCH V2 7/7] cpuidle/drivers/cpuidle-arm: Register the cooling device To: "Wangtao (Kevin, Kirin)" , edubezval@gmail.com Cc: 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, "Rafael J. Wysocki" References: <1519226968-19821-1-git-send-email-daniel.lezcano@linaro.org> <1519226968-19821-8-git-send-email-daniel.lezcano@linaro.org> <3b852c23-8bfd-0699-f219-fa694e8ceb71@hisilicon.com> From: Daniel Lezcano Message-ID: Date: Sat, 24 Feb 2018 23:53:55 +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: <3b852c23-8bfd-0699-f219-fa694e8ceb71@hisilicon.com> 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 24/02/2018 03:50, Wangtao (Kevin, Kirin) wrote: > > > On 2018/2/21 23:29, Daniel Lezcano wrote: >> Register the ARM generic cpuidle driver as a cooling device. >> >> Signed-off-by: Daniel Lezcano >> --- >>   drivers/cpuidle/cpuidle-arm.c | 5 +++++ >>   1 file changed, 5 insertions(+) >> >> diff --git a/drivers/cpuidle/cpuidle-arm.c >> b/drivers/cpuidle/cpuidle-arm.c >> index ddee1b6..c100915 100644 >> --- a/drivers/cpuidle/cpuidle-arm.c >> +++ b/drivers/cpuidle/cpuidle-arm.c >> @@ -11,6 +11,7 @@ >>     #define pr_fmt(fmt) "CPUidle arm: " fmt >>   +#include >>   #include >>   #include >>   #include >> @@ -172,6 +173,10 @@ static int __init arm_idle_init(void) >>               goto out_fail; >>       } >>   +    ret = cpuidle_cooling_register(); >> +    if (ret) >> +        pr_warn("Failed to register the cpuidle cooling device\n"); >> + > SoC which uses Big-Little architecture doesn't use cpuidle-arm driver, > is it > better to put cpuidle_cooling_register to cpuidle_register_driver, and > use the > cpumask of cpuidle driver to register cpuidle cooling device intead of > get it > from topology? The bL is supported by the cpuidle-arm driver, however due to how the cpumask is built, we can't use this in cpuidle_register_driver for that, it is a soapy board for now. -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog