From patchwork Tue Jul 2 07:57:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jinjie Ruan X-Patchwork-Id: 13719080 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 73B4FC3064D for ; Tue, 2 Jul 2024 07:54:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type: Content-Transfer-Encoding:MIME-Version:Message-ID:Date:Subject:CC:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=i4DvcHKN9QPo/GpH/uX1KWD+veVVifgxqmW63cdCfjA=; b=xBcLhOh8b7UBFUMiqXyuWLwTYm BAuErvcQiorUiuj7PoOlIfgIkxfKXV+cftip0xdGYVkw0oCiwI4RTzbg85A0o2Dpv4YWewcxEnadq UDgabUvNkUXPmaBdfsfbQhJqvjVzRCgU3WF+zOg/hsA3d53LTUY0ALuFijwp1JuIvrQlpf96i9AhK L8LuONDIreXP54gNDHLdXX8c1NN5xXCPMzbfLTTVskJv/ZoXOTz18PpfKiVJVyUi9P7sKD9a7npYB HsGfJeS5T31Snefz1b6JOjEDuV+rPOKJ3D0r6UaKnmuI6Aa3FCfhRs//hQM3svK2eG9PLtd9ZJMyx 7PTjgwBA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sOYLN-00000005v3Z-10Ll; Tue, 02 Jul 2024 07:54:29 +0000 Received: from szxga03-in.huawei.com ([45.249.212.189]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sOYLB-00000005v1R-0gcN for linux-arm-kernel@lists.infradead.org; Tue, 02 Jul 2024 07:54:18 +0000 Received: from mail.maildlp.com (unknown [172.19.163.252]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4WCw7L557wzQjx0; Tue, 2 Jul 2024 15:50:22 +0800 (CST) Received: from kwepemi100008.china.huawei.com (unknown [7.221.188.57]) by mail.maildlp.com (Postfix) with ESMTPS id 990F418007E; Tue, 2 Jul 2024 15:54:09 +0800 (CST) Received: from huawei.com (10.90.53.73) by kwepemi100008.china.huawei.com (7.221.188.57) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Tue, 2 Jul 2024 15:54:08 +0800 From: Jinjie Ruan To: , , , , , , , , , , , , , CC: Subject: [PATCH RESEND 0/2] ARM: Switch over to GENERIC_CPU_DEVICES Date: Tue, 2 Jul 2024 15:57:40 +0800 Message-ID: <20240702075742.945768-1-ruanjinjie@huawei.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Originating-IP: [10.90.53.73] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To kwepemi100008.china.huawei.com (7.221.188.57) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240702_005417_418642_95138A93 X-CRM114-Status: UNSURE ( 6.47 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Currently, almost all architectures have switched to GENERIC_CPU_DEVICES, except for arm32. Also switch over to GENERIC_CPU_DEVICES, which can also make the code more concise. Jinjie Ruan (2): ARM: Switch over to GENERIC_CPU_DEVICES using arch_register_cpu() ARM: Convert to arch_cpu_is_hotpluggable() arch/arm/Kconfig | 1 + arch/arm/include/asm/cpu.h | 1 - arch/arm/kernel/setup.c | 14 ++------------ 3 files changed, 3 insertions(+), 13 deletions(-)