From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="e/qax+t2" 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 98C6A171B for ; Thu, 30 Nov 2023 19:47:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1701402445; 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=+Q5xYcnLhhl5wab+9SUNf2YG1+1AQAaLiKPAT2IR83M=; b=e/qax+t2P5YvcINFgcPlspj/rVKk3yt5bTDqqYwM4Jw8ozUxOHjEfPtyKWDqbZC1JBuCWv zZeRxDUPid4Em5hTOgYnkj5Ys6ISxi1ti7R4zMdY0hKnGe/zpPsos4H+K4QCDqMQIY8sIT G1sxsfAFm+DLvLaPacI+eLdV8jdzYYs= Received: from mail-pg1-f198.google.com (mail-pg1-f198.google.com [209.85.215.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-453-kpTFGzlyOJ-it1uRHjgeTg-1; Thu, 30 Nov 2023 22:47:23 -0500 X-MC-Unique: kpTFGzlyOJ-it1uRHjgeTg-1 Received: by mail-pg1-f198.google.com with SMTP id 41be03b00d2f7-5be154fe98bso133821a12.0 for ; Thu, 30 Nov 2023 19:47:23 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701402442; x=1702007242; 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=+Q5xYcnLhhl5wab+9SUNf2YG1+1AQAaLiKPAT2IR83M=; b=OgZ1K0n+7/rfJO7An4QPQyAQTQP1yh+VyIdAwNxPWf6tv6FZprB3tvpWHUtcx3ESXB fTiPHhdfCv1c0w3sIsZKQdwzZjCSIk1CWifglmq6OKKoNXKQIFIQmTbz6kZWpwyWnUwE wlTt7UfbEU5isn9K3/Cz04XbYdvMH9GDJMLEITaA51i4vim2DPmrcuaF5eps7zaLXcrD BFYMx634bixpgiWI4uhW/MuLdopCPG05fLS+SPTVgSXu9wTuq0HJq+LK+XTqO8S4dHhW OjWxGQS2P32t0iAQf9j44+jLsOkpVtP5OYlpA3o6bp/l+DZoX0KYI3EWi2tUDoLusCv0 +DaA== X-Gm-Message-State: AOJu0YxP0DQQbGyN6FnozwgFeRe6ynzlcmfi83H0UxemR1mGLV1tIgBw PpVhbvFEL6JWuu+Askzdass4lyOxPwgcOAHIqZdMZff9JHgGMm+2+kDU8IoiYSotiXk3Z1XwjQx lKKoUB1rOw8CIan77TZyKgQ== X-Received: by 2002:a17:902:d2cb:b0:1cf:de3e:e4c9 with SMTP id n11-20020a170902d2cb00b001cfde3ee4c9mr23769891plc.29.1701402442609; Thu, 30 Nov 2023 19:47:22 -0800 (PST) X-Google-Smtp-Source: AGHT+IFFc/FRI9UHJwfBJxYeFRAhPaME7NIPXUpzMmMZaQsrSUZaHXjj5IgT1PfH3h0ARxutVZDmxg== X-Received: by 2002:a17:902:d2cb:b0:1cf:de3e:e4c9 with SMTP id n11-20020a170902d2cb00b001cfde3ee4c9mr23769867plc.29.1701402442296; Thu, 30 Nov 2023 19:47:22 -0800 (PST) Received: from [192.168.68.51] ([43.252.115.3]) by smtp.gmail.com with ESMTPSA id p5-20020a170902e74500b001cfc1a593f7sm2185691plf.217.2023.11.30.19.47.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 30 Nov 2023 19:47:21 -0800 (PST) Message-ID: <8c3ca6c7-fa5f-4f45-b36d-1c7d9d94c918@redhat.com> Date: Fri, 1 Dec 2023 14:47:11 +1100 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 08/21] 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/22/23 00:44, 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 > Reviewed-by: Shaoqin Huang > Signed-off-by: Russell King (Oracle) > --- > An open question remains from the RFC v2 posting: should we provide a > __weak stub for !HOTPLUG_CPU as well, since in later patches ACPI may > reference this if the compiler doesn't optimise as we expect? > > 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