From mboxrd@z Thu Jan 1 00:00:00 1970 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 6E0E9C4332F for ; Fri, 10 Nov 2023 03:37:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:From:References:Cc:To:Subject: MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=8T91i1mDYugqzQDOXwF4ChfkGpCttIky62xMf0MGA6w=; b=g4SIwz75pq6fPU EYBB5ospZBD3mq6wQmmdpnrkFLg5yrQx9sb9YOQWQFnIIh2SAOpnBLWV0vDvmyf/j9NQU+iUqgQlE pEEsCSgecdgq+0n41w0H/A1e6r2hOjKuDFsHwHTopbfy8VHZGyLiOXR3LQTnB19CQS0t+GjaZYVvs Qq+f0hMwOi0GMCDK+IuzVkeFjhjlMJLIuuG/Gonc/VpIKov4ew+hrAfu94e6zdE+hrj4EDyzMSKR3 8TODMkBlkUmrnZwlpqNq0oFWd82CCNdHvQwqVLnxZNtYDbuzutfss72P1VP/yvLO1H0gcm9tLf8MF fXTvqgookSTLRUEsj80Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r1IKp-007nft-0e; Fri, 10 Nov 2023 03:37:31 +0000 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r1IKl-007neM-1V for linux-arm-kernel@lists.infradead.org; Fri, 10 Nov 2023 03:37:29 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1699587446; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=pROeszy9ePncz4nZyjZpb065/8N1ucMk0OODbP+hams=; b=OhJ3cfCTCYB0IsWOV9mznfKk0U1r/aI+teZgReYsBis1Qw9Tz2EheaGNW135FdVaRWk1Ro 6eTlILWnajo0xoGpPgxyzO0Uxws5AmZTWvursTK7ocf3bjXi7bCsDcoeCcV9++vKUzK5YJ julONg8vwbWDTZMZYnThIRmBSlsvojI= Received: from mail-oi1-f197.google.com (mail-oi1-f197.google.com [209.85.167.197]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-352-Mr4ro35GPeepeMb3iROpOw-1; Thu, 09 Nov 2023 22:37:23 -0500 X-MC-Unique: Mr4ro35GPeepeMb3iROpOw-1 Received: by mail-oi1-f197.google.com with SMTP id 5614622812f47-3b2ec6de4e4so63836b6e.1 for ; Thu, 09 Nov 2023 19:37:23 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699587442; x=1700192242; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=pROeszy9ePncz4nZyjZpb065/8N1ucMk0OODbP+hams=; b=rIe9BvHVhLuGHmqq7APXDXiQ/Byx6IcL1bs4G9TNAYZmSW4iOgSm4DRC4Pf2eyov2D EOIp+wUgQABo+F6YkPuuGTvh3vvlZXFkh6UbkF2+EsEu2zl5dW14pLMSGDXdqune3h5w 1OkB79OlZ7fW1qNKT3T1CWv68bsOJq5kP/hDWP2LRPpdpfZAvS5FcBSx657zNSIfOYgH HU4Hy9DHaa12yKCP57MRTLdsf4L5sbYJaBv1SbhzOzXEaWZvHZYObtdj0Pg9ZzXjjZMN /j9WYyYhcbVFcNophDV6vuWVKVwN206pNMC2iovPq0F2CLTxJoThHFmE7BXDi0k1P2Pk duyw== X-Gm-Message-State: AOJu0YzKebXd3VBfXqqfd1wcpyfdXZi034fT/SWzi+th3HUmlxzS9tJb xlCpV0DtNMIagBPbuCcXgBsQTB9jU3a2EEQxTGhOF9wfqpXZpU4tiav5wVUyaeEBHPWSJFQQvLo WMDy/rB93R/YSai+W07e/IcaDhba4uwyDqkg= X-Received: by 2002:a05:6808:199c:b0:3a9:e8e2:579d with SMTP id bj28-20020a056808199c00b003a9e8e2579dmr8276264oib.2.1699587442481; Thu, 09 Nov 2023 19:37:22 -0800 (PST) X-Google-Smtp-Source: AGHT+IFPdXOyaUAzV6aldemEymWFIQu5uK8SS6EoZEeBtta4Ue7SEB3JH44cFaCIyyqf1iZkLKsTPg== X-Received: by 2002:a05:6808:199c:b0:3a9:e8e2:579d with SMTP id bj28-20020a056808199c00b003a9e8e2579dmr8276228oib.2.1699587442206; Thu, 09 Nov 2023 19:37:22 -0800 (PST) Received: from [10.66.61.39] ([43.228.180.230]) by smtp.gmail.com with ESMTPSA id e8-20020a63d948000000b005a9b20408a7sm5370547pgj.23.2023.11.09.19.37.17 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 09 Nov 2023 19:37:21 -0800 (PST) Message-ID: Date: Fri, 10 Nov 2023 11:37:16 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [PATCH RFC 14/22] arm64: convert to arch_cpu_is_hotpluggable() To: "Russell King (Oracle)" , linux-pm@vger.kernel.org, loongarch@lists.linux.dev, linux-acpi@vger.kernel.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-riscv@lists.infradead.org, kvmarm@lists.linux.dev, x86@kernel.org, linux-csky@vger.kernel.org, linux-doc@vger.kernel.org, linux-ia64@vger.kernel.org, linux-parisc@vger.kernel.org Cc: Salil Mehta , Jean-Philippe Brucker , jianyong.wu@arm.com, justin.he@arm.com, James Morse , Catalin Marinas , Will Deacon References: From: Shaoqin Huang In-Reply-To: X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231109_193727_571668_EB64D127 X-CRM114-Status: GOOD ( 14.67 ) 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: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 11/7/23 18:30, Russell King (Oracle) wrote: > Convert arm64 to use the arch_cpu_is_hotpluggable() helper rather than > arch_register_cpu(). > > Signed-off-by: Russell King (Oracle) Reviewed-by: Shaoqin Huang > --- > arch/arm64/kernel/setup.c | 8 ++------ > 1 file changed, 2 insertions(+), 6 deletions(-) > > diff --git a/arch/arm64/kernel/setup.c b/arch/arm64/kernel/setup.c > index 165bd2c0dd5a..42c690bb2d60 100644 > --- a/arch/arm64/kernel/setup.c > +++ b/arch/arm64/kernel/setup.c > @@ -402,13 +402,9 @@ static inline bool cpu_can_disable(unsigned int cpu) > return false; > } > > -int arch_register_cpu(int num) > +bool arch_cpu_is_hotpluggable(int num) > { > - struct cpu *cpu = &per_cpu(cpu_devices, num); > - > - cpu->hotpluggable = cpu_can_disable(num); > - > - return register_cpu(cpu, num); > + return cpu_can_disable(num); > } > > static void dump_kernel_offset(void) -- Shaoqin _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel