Received: by 10.223.185.116 with SMTP id b49csp274519wrg; Thu, 22 Feb 2018 21:36:00 -0800 (PST) X-Google-Smtp-Source: AH8x224MiJDwBTtqDEIGqmb4szIHkSQAnWiAQHWG8QRO+NdwOi+gMqO56SKFWDV9K5XAReU4bWeJ X-Received: by 2002:a17:902:b597:: with SMTP id a23-v6mr589647pls.227.1519364160236; Thu, 22 Feb 2018 21:36:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519364160; cv=none; d=google.com; s=arc-20160816; b=XScFpyiRUpk7JUIiJkbt3EoU66/F4yFeFEsyRH6eMVmI8iDCBa8Eb39cqWLDDrlDDt FyzRhbkVwNJO4raSjqjfjrb1GGuDw8QmD32RzcBI4X7syu16yzCybB2JoiYdUXh6vY1J R1wGDmlcNpBRslkl0vEDvYlimCuts6XYLq1YWNZ9Mfmwl+QPQ/rh0I6zOFRnOuX48jUT kBaCePz2Hnjsg7SYRrtZlO00CQkxV8XW9cODLpnuYvsBfDGptDeB2u9pwzR+8z09m3bA yMSpvogfmKQVFnMP+jFIkvhO4gk4aQohErctXFM/pHHD+EWcuw8WjOpm6vM3S1wp9w6i eB+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=TXrD7EkzB3eYuEdCvJ3ri9oLBi17iGKCZ/U4/7wIH2w=; b=UhqxFeOhEwpoUGiL6rVwYRLER+/E/zJ2RlP1pnbr5zaJUW1lmF0GxCmpSCowv1wk11 4DUnZtK5CzcPJZJ9GuvgWBqUlaj3y65rxS2jGr4VMiqRZZg6zYni6uq1Pex5GsWFP2yK WDnbLfwgtb4pDGIS+0UQsUUoUQGrSAavRnu6FmNQSyqLioD3Kd0N9R24KUtGNnXs8rpG ulxmPghJgQpxw/JPFf0seSbD7hndcIw1OlOtUzDyQ9100pY+o0MdOPlJDAEZFYdrVvUG yXusEj5xNY/kdNSkyNOeCV3rQ/LrE+6U90tbCpU3+7kw9fWcX1SG5qZqMmgzr7g/9Wph bm0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=NQXPMzuZ; 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=fail (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 u132si1038195pgc.802.2018.02.22.21.35.44; Thu, 22 Feb 2018 21:36:00 -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=fail header.i=@gmail.com header.s=20161025 header.b=NQXPMzuZ; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751425AbeBWFfE (ORCPT + 99 others); Fri, 23 Feb 2018 00:35:04 -0500 Received: from mail-io0-f196.google.com ([209.85.223.196]:38022 "EHLO mail-io0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750872AbeBWFfC (ORCPT ); Fri, 23 Feb 2018 00:35:02 -0500 Received: by mail-io0-f196.google.com with SMTP id g21so8579242ioj.5; Thu, 22 Feb 2018 21:35:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=TXrD7EkzB3eYuEdCvJ3ri9oLBi17iGKCZ/U4/7wIH2w=; b=NQXPMzuZmUUdxfrtDrr5OWBDA+EvEpFXBEAz5UtQhEIq87ujrRyccD8TaNZb3Ta4kC keGvUIMHxTyqDfQQpgRmcLAQ6WcsPwPlLtBXEHTn0nyFfDkJtwgMQhloKu48gdqE9Dtg orqu18+yuiFTAsFmZe5KwmQ+cKgIhKcNgwYIswy8aCAjekfMGvx0ukg5tToL1+Cx8ZG4 Uyd2zbXTsqp9YdJl5zdLq2tJ2hh9llEadihSpLHf+OXg7fWq4ApRLBPOdDM0x9ahCRcP TU+ptjEfrq4siL4s/t62ipOWRs4VThUWlQO/8aolL3bkhOoe7jiBi4eCkaMP9zPQzqO3 oGLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=TXrD7EkzB3eYuEdCvJ3ri9oLBi17iGKCZ/U4/7wIH2w=; b=F3+HyQki9GAecMiv6LVk9a3oRzfi7+sRL0sUF7T8eJ23ZmQkNs9/ZAHh//pEF09xxW RlNdvURIBkdX7+NNKxPAyx/KRw/ObdD5x+L8NXN18lB2pU2F52GQ/07CM0Rjm3Yc71FC 8gNIn+2cNT/Jn66tmO1+HFEwYWmVnmv9GRGZeD78x8G/xww2MPIsXvjV58dlk+++hYdX qv0JFhJCtiQNAqzuT4R86yclWRVvdvxy1CguXxnTci+dpsgiy9oRao9Bpdek9Nd7//b4 d0FcQT2ugq4SlDVPwegnmPKTFnYfQRwzf78CR6c3NHCIP4Ye62LUbLT8SIrL6x+B1MWR WIMA== X-Gm-Message-State: APf1xPBrhUynB+beTOhIhBjKw3zvc/oe5bTovrvorzpYlg290toKX9Y5 +kzH18xj2MMX6C6yDZDGd8HjFAWDLYKhOaeaf0w= X-Received: by 10.107.152.144 with SMTP id a138mr499305ioe.264.1519364101755; Thu, 22 Feb 2018 21:35:01 -0800 (PST) MIME-Version: 1.0 Received: by 10.2.56.1 with HTTP; Thu, 22 Feb 2018 21:35:01 -0800 (PST) In-Reply-To: <1519226968-19821-8-git-send-email-daniel.lezcano@linaro.org> References: <1519226968-19821-1-git-send-email-daniel.lezcano@linaro.org> <1519226968-19821-8-git-send-email-daniel.lezcano@linaro.org> From: Viresh Kumar Date: Fri, 23 Feb 2018 11:05:01 +0530 X-Google-Sender-Auth: d4XUgBFCx1W7a-PhIDMeDQpXsAg Message-ID: Subject: Re: [PATCH V2 7/7] cpuidle/drivers/cpuidle-arm: Register the cooling device To: Daniel Lezcano Cc: Eduardo Valentin , kevin.wangtao@linaro.org, Leo Yan , Vincent Guittot , amit.kachhap@gmail.com, Linux Kernel Mailing List , javi.merino@kernel.org, Zhang Rui , daniel.thompson@linaro.org, Linux PM list , "Rafael J. Wysocki" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 21, 2018 at 8:59 PM, 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"); > + Because you aren't going to use the return value here, it might be better to change return type of cpuidle_cooling_register() as "void" and do error printing from within that routine.