From nobody Fri Dec 19 10:58:53 2025 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D98FC149DF0 for ; Tue, 2 Jul 2024 07:54:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.189 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719906859; cv=none; b=eVMzYMDTtVtpF3TYLeUgE3gf6/aOsARK6rxMvHdHKS6KMvlevlG+Ch1Lmuouvc7kVGKmTCkn7Q2mbey4KnyyLc2sUEgDCuv7up3SSsM1du+MvUJt7aXeZOO4VFda31pEVrmWfg+ys4I5QPzbnrZUYbVGZH3f8PDsQq2AgVFgmdk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719906859; c=relaxed/simple; bh=x+SEkEj656NkHk0dv7h0S3gvsmiPq7ZBZhp+ZqQhVrg=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=RaTXKsHLesCxmxVeE9Xum3hw+t0OgylC5TA7vW6yi0eUxWs4NJWbfMw49QOvmKy7W5Qhs4KP1RTM43yraEhkTbT5kxnVBcpA5dJkOtaXZ86604pPfW8+iWRVYp9bDFwBlILqo4NOtvUFtCJ4R5c1414vGx4qTVxiMorENZQf8jk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=45.249.212.189 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.19.163.174]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4WCw7S4zYzzQjxl; Tue, 2 Jul 2024 15:50:28 +0800 (CST) Received: from kwepemi100008.china.huawei.com (unknown [7.221.188.57]) by mail.maildlp.com (Postfix) with ESMTPS id 93B0414022D; Tue, 2 Jul 2024 15:54:15 +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:14 +0800 From: Jinjie Ruan To: , , , , , , , , , , , , , CC: Subject: [PATCH RESEND 2/2] ARM: Convert to arch_cpu_is_hotpluggable() Date: Tue, 2 Jul 2024 15:57:42 +0800 Message-ID: <20240702075742.945768-3-ruanjinjie@huawei.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240702075742.945768-1-ruanjinjie@huawei.com> References: <20240702075742.945768-1-ruanjinjie@huawei.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To kwepemi100008.china.huawei.com (7.221.188.57) Content-Type: text/plain; charset="utf-8" Convert arm32 to use the arch_cpu_is_hotpluggable() helper rather than arch_register_cpu(). Signed-off-by: Jinjie Ruan --- arch/arm/kernel/setup.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/arch/arm/kernel/setup.c b/arch/arm/kernel/setup.c index f91e2b5b8b20..e6a857bf0ce6 100644 --- a/arch/arm/kernel/setup.c +++ b/arch/arm/kernel/setup.c @@ -1201,12 +1201,9 @@ void __init setup_arch(char **cmdline_p) mdesc->init_early(); } =20 -int arch_register_cpu(int num) +bool arch_cpu_is_hotpluggable(int num) { - struct cpu *cpu =3D &per_cpu(cpu_devices, num); - - cpu->hotpluggable =3D platform_can_hotplug_cpu(num); - return register_cpu(cpu, num); + return platform_can_hotplug_cpu(num); } =20 #ifdef CONFIG_HAVE_PROC_CPU --=20 2.34.1