From patchwork Fri Jun 21 13:22:57 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 167385 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp740742ilk; Fri, 21 Jun 2019 06:23:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqxsjZT/9JU2E5My61doeYeCBCVAIp1Bclr4FEUzI6Wi55Y4nXlS9AvJqCbF5u1PHED3qu5n X-Received: by 2002:a17:90a:7f02:: with SMTP id k2mr6711009pjl.78.1561123408013; Fri, 21 Jun 2019 06:23:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561123408; cv=none; d=google.com; s=arc-20160816; b=q9JwGjgqNq8Q6tizTebSRVqO1GBCbpxkUrkkXOkti+gAeZ5PneUiFdNP33lluKXYQ1 ko7/0lS77CoZ8trWWd5dVstqEkL/IitwBzVKLFl93+Ea9YSZdbmprLHEXoWxgm8YnojD IYy/iJQO2FMiMR+ouP6V9DqesoW6nkfWtLexgsVrke1mM8i9yQmpnJ70n3C6kLgNjcLO RQRzlOvZgJkWfWGH2ndmjVMDTJ1gEB//IobnynQrfFGbgFM/Mx/5BTbDE+Tvkm5NZXDG PWv985U3RFBnPZMTF2vyq4FFkXHqtObJQzs2/GbrL2EELqQ9SaasMqiUfR22PnLREqgH 1FOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=Ivwcwk4wjlXTEFrBezW9m8Osb/vrzZPgsbaTndGY63w=; b=VWva8T3yCtFqeyzFOFikdB+KZNkt78xDyYwCcT8tgRqJqgkEM3/F/i/y5Ch+47FxGy RiEFj2cx2uLSL5Jj8Ig1i1QLsidwThrztEkKiL5dExD8ajuua6Z5gNZTzQOHRuGgK9pk lCL5HT4xyD7pn1qIPSw2IHQjv/9/Ta/oqxO54+PlqW3DRRYFkiFWDB6x/32gVGxNBAfX aDfE/c2uD46pYFsPQQrEpCfG5o3c+0rZofKD0TYMdgHrAtM47HCxPhYHb/nwKAB66TyG WrV8zY+ljNpIo4syGlwDE21SNxY7+0cscNLv3m9R68DpPhlNcqcxedRxELzXTo4Wpt/3 JwBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lTye1pRr; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-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 l1si2699422plb.302.2019.06.21.06.23.27; Fri, 21 Jun 2019 06:23:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-pm-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=lTye1pRr; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-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 S1726115AbfFUNX1 (ORCPT + 11 others); Fri, 21 Jun 2019 09:23:27 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:38221 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726029AbfFUNX0 (ORCPT ); Fri, 21 Jun 2019 09:23:26 -0400 Received: by mail-wm1-f67.google.com with SMTP id s15so6596327wmj.3 for ; Fri, 21 Jun 2019 06:23:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=Ivwcwk4wjlXTEFrBezW9m8Osb/vrzZPgsbaTndGY63w=; b=lTye1pRrvYZaUqUpAY6fIcyP/rdkZZeh1TaiSOM/mfknHGEy22SVpna5CjRIIwa1bl Dgw016BteCVdF+4HcJTkyQLXjmxEnozwPGmJwAJ1Nc+nP87UN6B8j1uyHwMEmJHqAmau byssz6VnmjMEZmF/DPqgWpfYmPBXNmeItqpwu56fXX/y4S77vtGkOxSkHsRrxpR/rBNj k3e+tXOsg3ycq1FtK/wrwuCRt8bOTCRyfzyCv14YsscKyFOeVWYZUYFeaxC5EORYMgk5 Ds6ek3TI/7ZxwqWYSuz5MseJ0ww/p1NukAJLbKQ69SSdCpI0Z6KgPQxjntLWq1XfKeQt leBA== 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; bh=Ivwcwk4wjlXTEFrBezW9m8Osb/vrzZPgsbaTndGY63w=; b=cNtS3v42Lm338LkbLxbM2oy5/T+dXfnQCVH2Gm91KxWSOSvNk5VRmSVIcnbMN2Et4h dKpvjbvQr0JDoKczK6qdVNAsaHEyPjtP1gkEdkCM//3bD1GSCqO2fYNIWGorquhxt+5J F2w2L/vPb19F4Vvt21/1p3U+HzLcRUWUMvzPFTPPB8ZJXDnXQKpuBjzG2c/9CS+33VUE 7ke07sm/NnQcHNzAbSfYjYYEkvPLlKT7E5Qqt7oPJIetBeEWjvBByvylxDs1Y84nvYuP zdsnPZW+8/bPZQHjo1AY05nWIdgsc+Fq3eTZ66LPLe/SzMMO5kevZi+YCUFF0UVDrDT/ 1LsQ== X-Gm-Message-State: APjAAAWqu8WxBemHHs0BlJBgLPF7SCxabicIy72JiEEedsWc/moQC4CM BhawfTOlzegn4lWD+/ftxX8o2Q== X-Received: by 2002:a1c:39d6:: with SMTP id g205mr3957146wma.85.1561123404531; Fri, 21 Jun 2019 06:23:24 -0700 (PDT) Received: from clegane.local (206.105.129.77.rev.sfr.net. [77.129.105.206]) by smtp.gmail.com with ESMTPSA id s188sm1981234wmf.40.2019.06.21.06.23.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 21 Jun 2019 06:23:23 -0700 (PDT) From: Daniel Lezcano To: viresh.kumar@linaro.org Cc: edubezval@gmail.com, linux-kernel@vger.kernel.org, "Rafael J. Wysocki" , linux-pm@vger.kernel.org (open list:CPU FREQUENCY SCALING FRAMEWORK) Subject: [PATCH 1/6] cpufreq: Use existing stub functions instead of IS_ENABLED macro Date: Fri, 21 Jun 2019 15:22:57 +0200 Message-Id: <20190621132302.30414-1-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.17.1 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org The functions stub already exist for the condition the IS_ENABLED is trying to avoid. Remove the IS_ENABLED macros as they are pointless. Signed-off-by: Daniel Lezcano --- drivers/cpufreq/cpufreq.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) -- 2.17.1 Acked-by: Viresh Kumar diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c index 85ff958e01f1..7c72f7d3509c 100644 --- a/drivers/cpufreq/cpufreq.c +++ b/drivers/cpufreq/cpufreq.c @@ -1378,8 +1378,7 @@ static int cpufreq_online(unsigned int cpu) if (cpufreq_driver->ready) cpufreq_driver->ready(policy); - if (IS_ENABLED(CONFIG_CPU_THERMAL) && - cpufreq_driver->flags & CPUFREQ_IS_COOLING_DEV) + if (cpufreq_driver->flags & CPUFREQ_IS_COOLING_DEV) policy->cdev = of_cpufreq_cooling_register(policy); pr_debug("initialization complete\n"); @@ -1469,8 +1468,7 @@ static int cpufreq_offline(unsigned int cpu) goto unlock; } - if (IS_ENABLED(CONFIG_CPU_THERMAL) && - cpufreq_driver->flags & CPUFREQ_IS_COOLING_DEV) { + if (cpufreq_driver->flags & CPUFREQ_IS_COOLING_DEV) { cpufreq_cooling_unregister(policy->cdev); policy->cdev = NULL; }