Received: by 10.223.185.116 with SMTP id b49csp1422947wrg; Fri, 23 Feb 2018 18:52:54 -0800 (PST) X-Google-Smtp-Source: AH8x225cfnrPXx1zJdV8TdBDTcYc/Gia8lCDVgpoYEgyRm9DTN1mgkqvagu2kIkndTMKANCYNNDE X-Received: by 10.99.148.17 with SMTP id m17mr2961439pge.367.1519440774241; Fri, 23 Feb 2018 18:52:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519440774; cv=none; d=google.com; s=arc-20160816; b=cwBM0kZJ2XZLCCGdRm9zI4Kms1qSlZZpbGZ42PdZzJYIYkR8R0/cjpC46G3r+2Jbdj Zo03YCRKB2G3vJ0KYLaJ/oIDVUMb7/drqCpPY8d0MhuaGIKvH/yzeKvJjAz37kG/+slm O9IcGZUdTa2hQgQMAnzfM8uuDVwdBe64v93xu9ksbC1Ufh35Z/N8LFOxnwbCWrRHBor7 JJVcVkpRTpTnV3C4s1IizLdw4k9W0Cc74UBPbGWeGmgVflycYI7uw6+4HHrBFH6LVHZ9 3VQGMy8jbNkYKJdbVhAJNSkq05kW+s/LUdrwbhP5hi2Fzm3W7affkg1FY12nhrBXIVgj K3UQ== 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:in-reply-to :mime-version:user-agent:date:message-id:from:references:cc:to :subject:arc-authentication-results; bh=oALIc3578W3jCe4tOJ15CZmSpr4SkAn/qpZZ+enl5dw=; b=Ie97Tn+WQDmZY/kpGRZurVCd9Oc2ho2nDyPI3ojKI4JbzaxJE5WRyCssg89ZaTvJoR dcvWMabh46us37UnSpBmc9ouO+Nnj5sp3iSnSxkxEhqUa7g5R+H/P9KJtUtfINq3vQFq dgfTcl6iWWGxTtE//hTHo5m7cLpJDmXI3njn8EKym0uXK7rD5dGbE7ddyXLDPhQAM0vS +hl7+FHMxKmlHbwlHDFmenuWVTOc7VFOkgvYIFoCWxPTCMN8DPQfS0TRUWh8CNIqK1EC 60DJRfizX0mh21i3f+uHMsLjcIMUQXtDHefkBN6izks8RodPgGSpw0+8HISNzg7Fd/ua 0pCw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e13si2316402pgu.821.2018.02.23.18.52.40; Fri, 23 Feb 2018 18:52:54 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753018AbeBXCuf (ORCPT + 99 others); Fri, 23 Feb 2018 21:50:35 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:5263 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752525AbeBXCud (ORCPT ); Fri, 23 Feb 2018 21:50:33 -0500 Received: from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 44B95A44AEA9; Sat, 24 Feb 2018 10:50:19 +0800 (CST) Received: from [127.0.0.1] (10.121.90.40) by DGGEMS414-HUB.china.huawei.com (10.3.19.214) with Microsoft SMTP Server id 14.3.361.1; Sat, 24 Feb 2018 10:50:18 +0800 Subject: Re: [PATCH V2 7/7] cpuidle/drivers/cpuidle-arm: Register the cooling device To: Daniel Lezcano , CC: , , , , , , , , , "Rafael J. Wysocki" References: <1519226968-19821-1-git-send-email-daniel.lezcano@linaro.org> <1519226968-19821-8-git-send-email-daniel.lezcano@linaro.org> From: "Wangtao (Kevin, Kirin)" Message-ID: <3b852c23-8bfd-0699-f219-fa694e8ceb71@hisilicon.com> Date: Sat, 24 Feb 2018 10:50:16 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.2.0 MIME-Version: 1.0 In-Reply-To: <1519226968-19821-8-git-send-email-daniel.lezcano@linaro.org> Content-Type: text/plain; charset="gbk"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.121.90.40] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? > return 0; > > out_fail: >