Received: by 10.223.185.116 with SMTP id b49csp825376wrg; Wed, 21 Feb 2018 07:31:16 -0800 (PST) X-Google-Smtp-Source: AH8x226//Gyl6g42yQ+9WYkKS0L+/MJ43wVdCPsbCRUtTPE8BT4Y7LD6VJ14PA/D3dRwvDjWkrov X-Received: by 10.98.92.68 with SMTP id q65mr3716426pfb.4.1519227076307; Wed, 21 Feb 2018 07:31:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519227076; cv=none; d=google.com; s=arc-20160816; b=LhEmYSf6fywRIe7hYUyxbEe5Myu7NaD30YRn7oL+fb0SMzXNLpBApM/Ee5I8n6QPLn Vld0yvbhMHItw1nZ7Umm5nvtv5iAO1YqBbuGy5m1C2IQvxOVqP6/OGv1UHQv7f2aHuAg CZZPj0qbaOM2YGnkIohJbmsszMAWk7i+jpJ2vrIAVynxpPXJVY11h394Ns6HRnyIuaH6 rToVs2x9hFD3iPoyyFjvLuglNYeeBz2yYBW9wWJP+K9G1UoSDWWad9sk2+PhsusGwJsT 9NQGimJpotdRyLj1RuckI/dCJAWQbK//M5qE8mAVhE3F56rdjuhk8WczwQGnrCek60vc Subw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=ZqxBlmNsHznBskX1KBTP0UGbIstMc1gUTKwTLHUhTJE=; b=hNsrJREDaSPeTHLfVtW0oBFK8ESFWyi4DCby7dPFauGFNCf1UFPXciaV3/nO7v9jS9 DR0SrSoxalW5NO2RUGOEBAuMR7havoT2sV9/N/ELpRucZJmbihY9kwL3clEgEse081Ai bQA1H4dU8tbZhAX7QpmB3YNCqCe1w1BjAkRYcB0cH+55NB5hOBYmC6Q9HbZGrwpgtZwD B6hl3gtwoOsDEYDo1ssvTvwD4AAnv3WXuY5fWpTvt0zgYINOOUyXIB59tNH7GhPNEdIt KdVWj/4yA+PHRgLE/Ic3SX72SNTC6yBf6IVu/KCaQsTmaxr0Rwqk6vJALG981HFztk73 E2uA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Js+ESfZu; 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 t25si7010162pfk.176.2018.02.21.07.30.56; Wed, 21 Feb 2018 07:31:16 -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=Js+ESfZu; 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 S938350AbeBUPaJ (ORCPT + 99 others); Wed, 21 Feb 2018 10:30:09 -0500 Received: from mail-wr0-f196.google.com ([209.85.128.196]:39530 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S938327AbeBUPaC (ORCPT ); Wed, 21 Feb 2018 10:30:02 -0500 Received: by mail-wr0-f196.google.com with SMTP id w77so5602669wrc.6 for ; Wed, 21 Feb 2018 07:30:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ZqxBlmNsHznBskX1KBTP0UGbIstMc1gUTKwTLHUhTJE=; b=Js+ESfZubhJgUaTrLDJBqPj/9NIEKV6I+ePSvi8R9NFJhQZuWnEmigEL3frvl08a6+ uBa/hwdIJE8N5cJ7/NUAKMzfMMMW9L4NgyYTkaYrzcXzlEjAEbglNFVBzy4+nvkZtuay lwVryUBoeGOect0PiXamXDQGKLqzU7Zc6YwtY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ZqxBlmNsHznBskX1KBTP0UGbIstMc1gUTKwTLHUhTJE=; b=mn9OpnRPCHkkQvBt/XTAU6bu3HuUlW3KSH6uZTnP/Ey2TBvKWRDLgndnqLiVCjR6iB edmb2VpLY2X/2L+HAN98ZA2bpmvrzm4mh93AqMsZ4vnaSH0/oOKHX9KgTgtw+6AoN9kU /6wKP6Ox77rZVsme0GmJBTw9hLuM8nMkR5yllzCfANndTE9WVd6OfKp/3uX+qi1R7Cwk 9r3f7yPT2JixfaXQy/F/ddUWqutBbcfpsIJedA9Z8FAWB77hGZhULVoX9Sxp5qGF7i9z iFNS3PkAxksG86B/9a1Owc5m31C2Riv2EJMczo5F2dx467h3o/tbglKmiCCDd3BmK6SS agaQ== X-Gm-Message-State: APf1xPB/eVxhk3wDlLVIw8PC/xLY21yHNZQuOO+tlPKxyY2cy0IQAOx4 6YvgrtpM8S0KYvErymXVW+3YFg== X-Received: by 10.223.134.12 with SMTP id 12mr3291571wrv.193.1519227000876; Wed, 21 Feb 2018 07:30:00 -0800 (PST) Received: from localhost.localdomain ([2a01:e35:879a:6cd0:c4f2:763f:443f:f48]) by smtp.gmail.com with ESMTPSA id 32sm26552736wrm.14.2018.02.21.07.29.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 21 Feb 2018 07:29:59 -0800 (PST) From: Daniel Lezcano To: 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" Subject: [PATCH V2 7/7] cpuidle/drivers/cpuidle-arm: Register the cooling device Date: Wed, 21 Feb 2018 16:29:28 +0100 Message-Id: <1519226968-19821-8-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1519226968-19821-1-git-send-email-daniel.lezcano@linaro.org> References: <1519226968-19821-1-git-send-email-daniel.lezcano@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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"); + return 0; out_fail: -- 2.7.4