From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (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 AE14F3D75 for ; Mon, 13 Nov 2023 00:45:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="hOiF1vkw" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C4ED61BCC for ; Sun, 12 Nov 2023 16:45:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1699836318; 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=AIBcuinF5ss2DgGVnkjihkWjegSjrF5pOFgfBoAd6NQ=; b=hOiF1vkwr0HixjP9RY8YlJsV9+vuJkAigh2aBLO+jXq0BHjwPNlHDXtgKI03hIRNyygDSb 7+KVTwsgAJCzLwmMJglZjOMLR4pCWT0Hcx1r3WdXwI5UxXG5ipKAfBM0OG7fJaJiFabr8E DlzHP1joMuAiQY1Wu0lNb/YdkjGbzYA= Received: from mail-oa1-f70.google.com (mail-oa1-f70.google.com [209.85.160.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-317-5bd1B9b4PuO6vBgkSCF9ag-1; Sun, 12 Nov 2023 19:45:15 -0500 X-MC-Unique: 5bd1B9b4PuO6vBgkSCF9ag-1 Received: by mail-oa1-f70.google.com with SMTP id 586e51a60fabf-1f4ddfe6fe1so1318751fac.1 for ; Sun, 12 Nov 2023 16:45:15 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699836315; x=1700441115; 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=AIBcuinF5ss2DgGVnkjihkWjegSjrF5pOFgfBoAd6NQ=; b=MuXLOsQB8wonS2Dv+Y1qusgeGguggP6/vUPvV3yZ41ulJQlYZeZ8ffatBwB0goBcx+ QrdjrSL4Z2udeXcY44xRH0j1ELMF3hYcTzvKWbDQayF+WKNRnh/czwirbN7V/JthasDp wT4tLhxqdCvMfLjW0LKlr2inzLDKSuUUk3DR8qT8c6wgKokaJaEZFwuUwUV8czA547Vt QmFIdBSplc1NR8wwVWnXpXGjnqKWA9AwN8Nb5T7IO+Vr0GYytqPPFAjP1SCmn9HKPiVf f1eMv0+fzatGD9qdslmUyuxy0aVKJ00dwP8VVDWUr+vXMdHr3zHCNn0CJemkzjDqmms4 iclA== X-Gm-Message-State: AOJu0YzUvIp/GtnbxWTokv5MXepXhup6ue5tQBvedIzHLDC6Rn+CWAJA v9avcrfqy8LsSDGbgF4I+ViPrFQIQCdIt2fL0jWZsBoIyeygMRk1UU6QTrW5WQkGLJhcTN6YS9x T9qOLZVb4KrPzr/MQnR8uoQ== X-Received: by 2002:a05:6870:f14d:b0:1d5:b2ba:bc93 with SMTP id l13-20020a056870f14d00b001d5b2babc93mr7060143oac.13.1699836315192; Sun, 12 Nov 2023 16:45:15 -0800 (PST) X-Google-Smtp-Source: AGHT+IH9rLDeDKmdt9jI4rfj9b9OvZLsFOMuiJgoFwWcjW46CaFvA839DNqkdgqlkT2G64l2xzZLdg== X-Received: by 2002:a05:6870:f14d:b0:1d5:b2ba:bc93 with SMTP id l13-20020a056870f14d00b001d5b2babc93mr7060111oac.13.1699836314952; Sun, 12 Nov 2023 16:45:14 -0800 (PST) Received: from ?IPV6:2001:8003:e5b0:9f00:b890:3e54:96bb:2a15? ([2001:8003:e5b0:9f00:b890:3e54:96bb:2a15]) by smtp.gmail.com with ESMTPSA id hq18-20020a056a00681200b006933822e7a6sm2957854pfb.66.2023.11.12.16.45.07 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 12 Nov 2023 16:45:14 -0800 (PST) Message-ID: Date: Mon, 13 Nov 2023 10:45:05 +1000 Precedence: bulk X-Mailing-List: linux-arch@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH RFC 08/22] drivers: base: Implement weak arch_unregister_cpu() Content-Language: en-US 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 , Greg Kroah-Hartman , "Rafael J. Wysocki" , Paul Walmsley , Palmer Dabbelt , Albert Ou References: From: Gavin Shan In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 11/7/23 20:29, Russell King (Oracle) wrote: > From: James Morse > > Add arch_unregister_cpu() to allow the ACPI machinery to call > unregister_cpu(). This is enough for arm64, riscv and loongarch, but > needs to be overridden by x86 and ia64 who need to do more work. > > CC: Jean-Philippe Brucker > Signed-off-by: James Morse > --- > Changes since v1: > * Added CONFIG_HOTPLUG_CPU ifdeffery around unregister_cpu > Changes since RFC v2: > * Move earlier in the series > --- > drivers/base/cpu.c | 9 ++++++++- > 1 file changed, 8 insertions(+), 1 deletion(-) > Reviewed-by: Gavin Shan