From patchwork Tue Feb 2 05:41:55 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 374595 Delivered-To: patch@linaro.org Received: by 2002:a02:b18a:0:0:0:0:0 with SMTP id t10csp1923358jah; Mon, 1 Feb 2021 21:43:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJzsuFFr1Kn5oR+cfl4c+GhDX9BV1AKSrdBDphj2jytpYjhcDyETIgHgWmlA9JdSbL8OzjTv X-Received: by 2002:a50:ef0a:: with SMTP id m10mr22615820eds.38.1612244610874; Mon, 01 Feb 2021 21:43:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612244610; cv=none; d=google.com; s=arc-20160816; b=anjteU6/ZYcLLPPhQs9WOqDHkVkt5/oER1qXyyo/VjMbNyjJ8f5dIW31Mh9LobIOFo pKFXaY7OSE8BK8G9FlFVSblAlXDh1FqI3r59XFX5S9E8CDcL+BcaXr1/5eOtTQ9KZIHY JEqd2Pg16quQCSGMty+mGRkF6UM8vi2qJNyzwzFptdE/T4lnhC1xYmxq3rzOv1ivWMoh C6RvxbNIiZGhlB5+OEecWrddN+kMgOZA8ravlYmwx+ktwo3Mr5nEo/k24HpYsCAufW6X k7+r4ueySHsRqZfIjgjzQqJOIoIG/dwhWFPCXCzRIuK3t22i8ZHUxLVnLZabAzSQau7G gXmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=frAkgVL2A/flsUkD71GYFVNqrXgLKUeulhJ4Bqnppzk=; b=eId0cEelTNFCnOaABp7UntQnSoom4UKq2pX4lF/aX+eFOuYY3v1KU+xNt2uYe7B3JM E2eX5WKrXrOfmmfs1YKSS/mA4RCmFABq9XKteZeM2xdgPagXJWKsWCH1twRz0nEyceLb dI9SkPIQGAAvTzTasvEQS+ApXFUYyeoNdmbO2X84C9aMBbCcry9NdWDVqTmKA48jY20o IEbN8RMQcep/aSW//st7qnqzPALOfxIn0doB7tdTP522uDaRghmmaDAgq71FmcBoEocf rLDAQcKCAj3w8BjK6NKKRODB+d0KjceVhGX3er0OSeizpG5REncOew6am5fsR0j31pqP xj7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MGUcjiyj; spf=pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id hp16si11937845ejc.16.2021.02.01.21.43.30; Mon, 01 Feb 2021 21:43:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MGUcjiyj; spf=pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 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 S231790AbhBBFmn (ORCPT + 7 others); Tue, 2 Feb 2021 00:42:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55580 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231468AbhBBFml (ORCPT ); Tue, 2 Feb 2021 00:42:41 -0500 Received: from mail-pl1-x635.google.com (mail-pl1-x635.google.com [IPv6:2607:f8b0:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ACF31C06174A for ; Mon, 1 Feb 2021 21:42:01 -0800 (PST) Received: by mail-pl1-x635.google.com with SMTP id g3so11842508plp.2 for ; Mon, 01 Feb 2021 21:42: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:mime-version :content-transfer-encoding; bh=frAkgVL2A/flsUkD71GYFVNqrXgLKUeulhJ4Bqnppzk=; b=MGUcjiyjgz3PsYXoJzyHlHKBA3biuY/GtlAnY21YDnrJbf0oyCTLdHywQ1wJcX7pbI 3ahWvyl/Uw5KoHE1EA/7kgFFrqS9xMDyOJjxgWKBssojs90KY0TmgjbQhCebtfe7rTmq mIcFJSpSQModv1IRNycmrkbvJ1vGKGuHGmjTAM3PbgXe5OV9dz5NCiuIGBDtU4md9BSH quW8ivdCsZUJYWkYkDAwPBLwrd+ugRfdrfj8rc/UfsH8xAgXCi8Rd9O72Ovh5dwIzWOw xxEVpjGRy8HJHgbOdkXWEW3/AR3j8ZsCIUTm9+HM8t+Kr1gK2ja/4Pg40HhIDT1ZDl/4 qqRA== 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:mime-version :content-transfer-encoding; bh=frAkgVL2A/flsUkD71GYFVNqrXgLKUeulhJ4Bqnppzk=; b=nkv1A8+exQpwPduT0zc9ma1BAfKXoEvbcSfqHumDe5/zZRRTd440Al45dGXY/nmxaN vV7l8jU4UTM0TmKM89WgnPmz6p7MNyGS2wqdmBMO+U8Mu+ZWJr/VkG2m6hH3IaapHZQt bJNmI9dCBnInUQ7Ig7Dem4i/jl4cOPJFI4+g/NdMcgXUpsujjwRD8QavTeYm6NJR+9PC Uglskc0qCsghAJmEypRghkbFKyXi8UGGlVPg9Ui/PHAoNawZLgzs01zyuQmaw/wyb2e+ A/qZ8+JDcEf8yMhTF3qjbqKVc0nYgXEBiNkFb8emoAtn2aagy4luZA6L/EFKOElDKjoY c7QQ== X-Gm-Message-State: AOAM531emZyDpJkcMcvxnlIeFlJdfoaoxKstP+Ol4DN+hdzkyF4WB1wg CAuYJV0cniRmJqcvSbYtd8mVHA== X-Received: by 2002:a17:902:ec83:b029:df:e942:93c0 with SMTP id x3-20020a170902ec83b02900dfe94293c0mr20605223plg.55.1612244521019; Mon, 01 Feb 2021 21:42:01 -0800 (PST) Received: from localhost ([122.172.59.240]) by smtp.gmail.com with ESMTPSA id 184sm20062304pgi.92.2021.02.01.21.41.59 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 01 Feb 2021 21:41:59 -0800 (PST) From: Viresh Kumar To: Rafael Wysocki , Viresh Kumar , Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras Cc: linux-pm@vger.kernel.org, Vincent Guittot , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH] cpufreq: Remove unused flag CPUFREQ_PM_NO_WARN Date: Tue, 2 Feb 2021 11:11:55 +0530 Message-Id: X-Mailer: git-send-email 2.25.0.rc1.19.g042ed3e048af MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org This flag is set by one of the drivers but it isn't used in the code otherwise. Remove the unused flag and update the driver. Signed-off-by: Viresh Kumar --- Rebased over: https://lore.kernel.org/lkml/a59bb322b22c247d570b70a8e94067804287623b.1612241683.git.viresh.kumar@linaro.org/ drivers/cpufreq/pmac32-cpufreq.c | 3 +-- include/linux/cpufreq.h | 13 +++++-------- 2 files changed, 6 insertions(+), 10 deletions(-) -- 2.25.0.rc1.19.g042ed3e048af diff --git a/drivers/cpufreq/pmac32-cpufreq.c b/drivers/cpufreq/pmac32-cpufreq.c index 73621bc11976..4f20c6a9108d 100644 --- a/drivers/cpufreq/pmac32-cpufreq.c +++ b/drivers/cpufreq/pmac32-cpufreq.c @@ -439,8 +439,7 @@ static struct cpufreq_driver pmac_cpufreq_driver = { .init = pmac_cpufreq_cpu_init, .suspend = pmac_cpufreq_suspend, .resume = pmac_cpufreq_resume, - .flags = CPUFREQ_PM_NO_WARN | - CPUFREQ_NO_AUTO_DYNAMIC_SWITCHING, + .flags = CPUFREQ_NO_AUTO_DYNAMIC_SWITCHING, .attr = cpufreq_generic_attr, .name = "powermac", }; diff --git a/include/linux/cpufreq.h b/include/linux/cpufreq.h index c8e40e91fe9b..353969c7acd3 100644 --- a/include/linux/cpufreq.h +++ b/include/linux/cpufreq.h @@ -398,8 +398,11 @@ struct cpufreq_driver { /* loops_per_jiffy or other kernel "constants" aren't affected by frequency transitions */ #define CPUFREQ_CONST_LOOPS BIT(1) -/* don't warn on suspend/resume speed mismatches */ -#define CPUFREQ_PM_NO_WARN BIT(2) +/* + * Set by drivers that want the core to automatically register the cpufreq + * driver as a thermal cooling device. + */ +#define CPUFREQ_IS_COOLING_DEV BIT(2) /* * This should be set by platforms having multiple clock-domains, i.e. @@ -431,12 +434,6 @@ struct cpufreq_driver { */ #define CPUFREQ_NO_AUTO_DYNAMIC_SWITCHING BIT(6) -/* - * Set by drivers that want the core to automatically register the cpufreq - * driver as a thermal cooling device. - */ -#define CPUFREQ_IS_COOLING_DEV BIT(7) - int cpufreq_register_driver(struct cpufreq_driver *driver_data); int cpufreq_unregister_driver(struct cpufreq_driver *driver_data);