From patchwork Fri Nov 24 12:16:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zenghui Yu X-Patchwork-Id: 169400 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce62:0:b0:403:3b70:6f57 with SMTP id o2csp1134746vqx; Fri, 24 Nov 2023 04:16:39 -0800 (PST) X-Google-Smtp-Source: AGHT+IGEsBW/g0WEVzNwxyNuGoZh9LXHJtmt2G0brnYxN6QPJVEVe2Gsy4oT9nOml1sv6uhS2nNN X-Received: by 2002:a17:90a:1a03:b0:280:2652:d4e with SMTP id 3-20020a17090a1a0300b0028026520d4emr2389975pjk.29.1700828199272; Fri, 24 Nov 2023 04:16:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700828199; cv=none; d=google.com; s=arc-20160816; b=FsHD+ENhJEawk89jpSduEot8bkFVonG5TtCTaQBJw43SQUtvmlqxHnb4smP8h7T2bP EyNdPYd6kB08UytsaLIbgHEvNY42EtIxc0OgxqsEOhVgukN8T2yEPEmatzvHIAkvO2Qj P/ebA8Niq3KgvyNsbr6KC1SHp2lnIsdL1jTEKWI4oUuIqw1N6+eLMfPSckL5oXy37F3M uNL7U3k70E+iAMG28dcv6/xaPdN8b1n88WwhcjM9Ze9IAy+8AN5UfNHH80WjeMSO7+42 ofidSGuGC3uWcsgJNPPA1RmYx3BODSFIa0MCKlRC9rlIdYiXSbakie9PtAf8/iP5hLOX pDvA== 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; bh=7wJu6AucGy+9nGBM32mP/jbqkW9Dt/1oSQwcRHmXIWk=; fh=j4Dh0fsnLKVABFE892VE/epI9oaKgw6EzIjtE4+MbVU=; b=MrMZSMdq5fQdkhk1lfd2fotUnOI1ESfz+gCaySRd1BG/UVkQ4Oz/nXdQxWlBnuoqW9 BNvgn7ryKJslBbyfMOmn6abDTAdqN6V9XmqBtoSgP8Ik0Q/NqwePJ9Qpizo3zKVG0gEc hUMfLOdezCtJ4wiHwhI+6oghaUG8TIAGnlAi8D2f/mRe3KTE+wuGI5CtXRXy64fA6NRE BHjJ5eJTe53clLDYdwQBnM6iGwh/V7jeeoq/ZhpkPfADjaOVG0psMsvmbekrVD0oadlY e+wJpJaTrAX1j7wxX+H56w8QCEP8qoDQID+Xxi93nOp4KT/KFUzRCufPGYFYHCRe+yk8 CChg== 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:4 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 howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id fr18-20020a17090ae2d200b0028558ef0c2dsi4082622pjb.33.2023.11.24.04.16.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Nov 2023 04:16:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (Postfix) with ESMTP id 6501880490A6; Fri, 24 Nov 2023 04:16:36 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345077AbjKXMQR (ORCPT + 99 others); Fri, 24 Nov 2023 07:16:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56288 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230159AbjKXMQP (ORCPT ); Fri, 24 Nov 2023 07:16:15 -0500 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2894510D7 for ; Fri, 24 Nov 2023 04:16:21 -0800 (PST) Received: from kwepemm000007.china.huawei.com (unknown [172.30.72.55]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4ScDTh4hNPzvR8w; Fri, 24 Nov 2023 20:15:52 +0800 (CST) Received: from DESKTOP-8RFUVS3.china.huawei.com (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; Fri, 24 Nov 2023 20:16:18 +0800 From: Zenghui Yu To: CC: , , , Zenghui Yu Subject: [PATCH] cpu/hotplug: Remove the obsolete CPU hotplug states Date: Fri, 24 Nov 2023 20:16:15 +0800 Message-ID: <20231124121615.1604-1-yuzenghui@huawei.com> X-Mailer: git-send-email 2.23.0.windows.1 MIME-Version: 1.0 X-Originating-IP: [10.174.185.179] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To kwepemm000007.china.huawei.com (7.193.23.189) X-CFilter-Loop: Reflected X-Spam-Status: No, score=0.0 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,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 howler.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 (howler.vger.email [0.0.0.0]); Fri, 24 Nov 2023 04:16:36 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783447629783416547 X-GMAIL-MSGID: 1783447629783416547 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,