Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp402934rdb; Tue, 5 Dec 2023 08:27:50 -0800 (PST) X-Google-Smtp-Source: AGHT+IGq/zoqftgnK/TSDBLY8egz5ieEtQ880j/aiTd4VLbOxHeP/Ml789NiPbTqAmclHP7IMgya X-Received: by 2002:a17:90a:898d:b0:286:6cc1:2cbd with SMTP id v13-20020a17090a898d00b002866cc12cbdmr1277176pjn.71.1701793669870; Tue, 05 Dec 2023 08:27:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701793669; cv=none; d=google.com; s=arc-20160816; b=JmGftnW8DCeqIo6ViDUnBe4aV7AG8mOEwvduRz/gLCtrvERFTBNaF3CRdEwnhfhtzR onyzAoGSGakPwCL1IQQRD0maPyuSkfetFMk1NdaXHBD3UpMH/XdsWi3jrQIJybHql5I1 dgdzIOiqR1+p8ZcDNrTGxhT0u2nWmz+Wcn80hO5RjVijg+XvZKwuRfrJIGznDd3L+jpq ZCiiAlaN2H8PerpmX+MG5XLphhTVQ7d6yMnBvqg4zRPrn30vanNZsRVgypG9E36hmpgk hPYk9kKWFXWP9xMiKSY/6lJ4foOXUZaH0EMHVfTJVSuS7Xh3husEQyjqfpdFMEIax/Tt 8VWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=wmakBCJCMcS24Cr2enPjpw8Ewq7Pl9WgPgaStACSDMc=; fh=jJ8Raq3ieSfb2b9J9pqjUlxkybyxziMDlHU0eLGo2sQ=; b=j+PXMrhYj/89Boh6O+5YLyBjAwEjK24e4QxRykIcCuv7W0IUoiPoilhQy+N/9aCTeT G1B4NNXtJ7Wpc94NL/UC874B7A+mz7E3ndiBCSUG0HzCdVdXU+oTKJ5hikYrLLjCUcLw 91UFBSuI4f46+o9aJnyouT3/HWR29F2aRVBe2iyPKsjTNN5M2YS3ZidafOtcLYmvRfsf RNmgoafyoPWu3TwQyRdVQJprvrZViJAQnLL95O/BTDbWQKbPvRqDRpw7LJ6thrTToIMu JfKoeMEWniTaBIFywL+Ok+9YWVFlh0wOKVSeAEcx/2Io/fCJIIJZ0p1dEUP/VXQm68Ce C7IQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id k89-20020a17090a3ee200b0028699acfb2bsi308853pjc.53.2023.12.05.08.27.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Dec 2023 08:27:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id C84EA8077A72; Tue, 5 Dec 2023 08:26:39 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231888AbjLEQ0X (ORCPT + 99 others); Tue, 5 Dec 2023 11:26:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38128 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231799AbjLEQ0V (ORCPT ); Tue, 5 Dec 2023 11:26:21 -0500 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B6B4C3 for ; Tue, 5 Dec 2023 08:26:26 -0800 (PST) Received: from kwepemm000007.china.huawei.com (unknown [172.30.72.57]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4Sl5Vf6nl8zWjDC; Wed, 6 Dec 2023 00:25:30 +0800 (CST) Received: from [10.174.185.179] (10.174.185.179) by kwepemm000007.china.huawei.com (7.193.23.189) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Wed, 6 Dec 2023 00:26:23 +0800 Subject: Re: [PATCH] cpu/hotplug: Remove the obsolete CPU hotplug states To: CC: , , , , , Greg Kroah-Hartman , , , , , Arnd Bergmann , References: <20231124121615.1604-1-yuzenghui@huawei.com> From: Zenghui Yu Message-ID: Date: Wed, 6 Dec 2023 00:26:22 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: <20231124121615.1604-1-yuzenghui@huawei.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.185.179] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To kwepemm000007.china.huawei.com (7.193.23.189) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.0 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,UPPERCASE_50_75 autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Tue, 05 Dec 2023 08:26:39 -0800 (PST) +Cc more folks (authors of those "removal" commits) to get review comments. On 2023/11/24 20:16, Zenghui Yu wrote: > There is a bunch of obsolete constants in the cpuhp_state enum that are no > longer used anywhere in the kernel. The oldest one has been unused for over > six years. > > Drop all of them to reduce the size of the cpuhp_hp_states array. > > obsolete hotpulg states introduced in unused since > =================================== ============= ============ > CPUHP_X86_APB_DEAD 148b9e2abea6 1b79fc4f2bfd > CPUHP_MM_DEMOTION_DEAD a6a0251c6fce 734c15700cdf > CPUHP_LUSTRE_CFS_DEAD 7b737965b331 be65f9ed267f > CPUHP_NET_FLOW_PREPARE a4fc1bfc4206 09c7570480f7 > CPUHP_AP_IRQ_RISCV_STARTING 6b7ce8927b5a 832f15f42646 > CPUHP_AP_MICROCODE_LOADER 78f4e932f776 5af05b8d51a8 > CPUHP_AP_PERF_X86_CQM_STARTING f07048270423 c39a0e2c8850 > CPUHP_AP_MIPS_OP_LOONGSON3_STARTING 65264e3bc3d4 e258958945c6 > CPUHP_AP_MARCO_TIMER_STARTING eb0a9d8c672d 446262b27285 > CPUHP_AP_PERF_X86_CQM_ONLINE f07048270423 c39a0e2c8850 > CPUHP_AP_PERF_X86_IDXD_ONLINE 81dd4d4d6178 never used > CPUHP_AP_MM_DEMOTION_ONLINE a6a0251c6fce 734c15700cdf > > Signed-off-by: Zenghui Yu > --- > include/linux/cpuhotplug.h | 14 -------------- > 1 file changed, 14 deletions(-) > > diff --git a/include/linux/cpuhotplug.h b/include/linux/cpuhotplug.h > index efc0c0b07efb..af6c21aab985 100644 > --- a/include/linux/cpuhotplug.h > +++ b/include/linux/cpuhotplug.h > @@ -66,15 +66,12 @@ enum cpuhp_state { > CPUHP_PERF_POWER, > CPUHP_PERF_SUPERH, > CPUHP_X86_HPET_DEAD, > - CPUHP_X86_APB_DEAD, > CPUHP_X86_MCE_DEAD, > CPUHP_VIRT_NET_DEAD, > CPUHP_IBMVNIC_DEAD, > CPUHP_SLUB_DEAD, > CPUHP_DEBUG_OBJ_DEAD, > CPUHP_MM_WRITEBACK_DEAD, > - /* Must be after CPUHP_MM_VMSTAT_DEAD */ > - CPUHP_MM_DEMOTION_DEAD, > CPUHP_MM_VMSTAT_DEAD, > CPUHP_SOFTIRQ_DEAD, > CPUHP_NET_MVNETA_DEAD, > @@ -96,7 +93,6 @@ enum cpuhp_state { > CPUHP_NET_DEV_DEAD, > CPUHP_PCI_XGENE_DEAD, > CPUHP_IOMMU_IOVA_DEAD, > - CPUHP_LUSTRE_CFS_DEAD, > CPUHP_AP_ARM_CACHE_B15_RAC_DEAD, > CPUHP_PADATA_DEAD, > CPUHP_AP_DTPM_CPU_DEAD, > @@ -118,7 +114,6 @@ enum cpuhp_state { > CPUHP_XEN_EVTCHN_PREPARE, > CPUHP_ARM_SHMOBILE_SCU_PREPARE, > CPUHP_SH_SH3X_PREPARE, > - CPUHP_NET_FLOW_PREPARE, > CPUHP_TOPOLOGY_PREPARE, > CPUHP_NET_IUCV_PREPARE, > CPUHP_ARM_BL_PREPARE, > @@ -151,18 +146,14 @@ enum cpuhp_state { > CPUHP_AP_IRQ_ARMADA_XP_STARTING, > CPUHP_AP_IRQ_BCM2836_STARTING, > CPUHP_AP_IRQ_MIPS_GIC_STARTING, > - CPUHP_AP_IRQ_RISCV_STARTING, > CPUHP_AP_IRQ_LOONGARCH_STARTING, > CPUHP_AP_IRQ_SIFIVE_PLIC_STARTING, > CPUHP_AP_ARM_MVEBU_COHERENCY, > - CPUHP_AP_MICROCODE_LOADER, > CPUHP_AP_PERF_X86_AMD_UNCORE_STARTING, > CPUHP_AP_PERF_X86_STARTING, > CPUHP_AP_PERF_X86_AMD_IBS_STARTING, > - CPUHP_AP_PERF_X86_CQM_STARTING, > CPUHP_AP_PERF_X86_CSTATE_STARTING, > CPUHP_AP_PERF_XTENSA_STARTING, > - CPUHP_AP_MIPS_OP_LOONGSON3_STARTING, > CPUHP_AP_ARM_VFP_STARTING, > CPUHP_AP_ARM64_DEBUG_MONITORS_STARTING, > CPUHP_AP_PERF_ARM_HW_BREAKPOINT_STARTING, > @@ -179,7 +170,6 @@ enum cpuhp_state { > CPUHP_AP_QCOM_TIMER_STARTING, > CPUHP_AP_TEGRA_TIMER_STARTING, > CPUHP_AP_ARMADA_TIMER_STARTING, > - CPUHP_AP_MARCO_TIMER_STARTING, > CPUHP_AP_MIPS_GIC_TIMER_STARTING, > CPUHP_AP_ARC_TIMER_STARTING, > CPUHP_AP_RISCV_TIMER_STARTING, > @@ -217,9 +207,7 @@ enum cpuhp_state { > CPUHP_AP_PERF_X86_AMD_UNCORE_ONLINE, > CPUHP_AP_PERF_X86_AMD_POWER_ONLINE, > CPUHP_AP_PERF_X86_RAPL_ONLINE, > - CPUHP_AP_PERF_X86_CQM_ONLINE, > CPUHP_AP_PERF_X86_CSTATE_ONLINE, > - CPUHP_AP_PERF_X86_IDXD_ONLINE, > CPUHP_AP_PERF_S390_CF_ONLINE, > CPUHP_AP_PERF_S390_SF_ONLINE, > CPUHP_AP_PERF_ARM_CCI_ONLINE, > @@ -252,8 +240,6 @@ enum cpuhp_state { > CPUHP_AP_BASE_CACHEINFO_ONLINE, > CPUHP_AP_ONLINE_DYN, > CPUHP_AP_ONLINE_DYN_END = CPUHP_AP_ONLINE_DYN + 30, > - /* Must be after CPUHP_AP_ONLINE_DYN for node_states[N_CPU] update */ > - CPUHP_AP_MM_DEMOTION_ONLINE, > CPUHP_AP_X86_HPET_ONLINE, > CPUHP_AP_X86_KVM_CLK_ONLINE, > CPUHP_AP_ACTIVE, >