Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp776864rdb; Thu, 30 Nov 2023 19:47:39 -0800 (PST) X-Google-Smtp-Source: AGHT+IEn8c9HZVgrOU4dZyahNrWzLuqVYlvzYJRfNk+vYQ4TpKmneYogQE6mtALzza+rPcQhf2YG X-Received: by 2002:a17:902:f690:b0:1d0:55ef:4f7f with SMTP id l16-20020a170902f69000b001d055ef4f7fmr409481plg.26.1701402459133; Thu, 30 Nov 2023 19:47:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701402459; cv=none; d=google.com; s=arc-20160816; b=drtvNrMUdWyJBK1I2u2aFa1B+95NKeTma/+kIiNseWu5aszebNycNlHpweN3rmXFsC dhwYkpd3n88wGAsPg/pbSS3ij8eYKhxGb+dN/VSPc3VDYOU9urMx/bmfkk1+QcjdPF1U Wtam3mcWgTcizSbVeAfhULKqigGJK+HvXZsoDV+mFs2TXCPcIM6Xw44TWwpM7Iqcuuq2 HRTAPV2op/6pkbsVCOXuI24jGEIsL8p7rJgDPYI3VidEAh21dOGIPw5JAEGXq8E6u8Yv S1q0+fveOKK6o2TgwtLff7uV06NkQ8j8v4Z6u2jAUW5fnkrPV/+r6L1kDiKV6XYOMwNG h5SA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=+Q5xYcnLhhl5wab+9SUNf2YG1+1AQAaLiKPAT2IR83M=; fh=jUwddFzHzPXdHRuqZh85NNSJtbFX7k2MPINay1jHoz0=; b=dlBNwn82XNI7pSaILAO0+sIr0A6Tl3rUnSGKvbXAVxUBtEJJPu0utwWsR6bl55nfLJ 79kbP61uwcRqtKyTaFCE3YwoD6maPbAyjpCkMDa+1E7aEDglYfz3dCqvODcWG1hz0rPl lpJCiPhyTWB8E502PP4Ep5lIDMZpv6JkIfCjiIbw3TNj+Vtl/mozUc8OApKoq1tieEZQ CwbHdHbs7KEINs8mGrTdOprEqo5+RAqrmlT60cgZ+jEdlZcF9SamwLFy1R6Bi8Dg1l2p x05IszKBkqSD8lt4XB76fF0jFU7xz9hd4MXcBwU0sChupFhQ3ePeInbo4GkTjrbUccxE FqqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="GwcEOei/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id p2-20020a170902eac200b001cc1194e9d3si2415399pld.217.2023.11.30.19.47.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 19:47:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="GwcEOei/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 8BE438235791; Thu, 30 Nov 2023 19:47:36 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232136AbjLADrW (ORCPT + 99 others); Thu, 30 Nov 2023 22:47:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34918 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229950AbjLADrV (ORCPT ); Thu, 30 Nov 2023 22:47:21 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 93DB3171D for ; Thu, 30 Nov 2023 19:47:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1701402446; 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=GwcEOei/lLwIZ/h+Dr/DDXabPaXge2yF8NXZJtnkWdFkRFCs/BEo3rWlfGt5EsnmOuIw7I pE3UVLoxAXp8MM2oChDKxulXc0D80IbODC+VH4HyLfE+23VH2gy9qiyZfHlZPje6L0hc9t AUb3M1dfHjkq1enR5+TKmGsmpYNKBZc= Received: from mail-pg1-f200.google.com (mail-pg1-f200.google.com [209.85.215.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-576-fUHhQS29Ms-7ohgkbWIzZQ-1; Thu, 30 Nov 2023 22:47:23 -0500 X-MC-Unique: fUHhQS29Ms-7ohgkbWIzZQ-1 Received: by mail-pg1-f200.google.com with SMTP id 41be03b00d2f7-5be154fe98bso133822a12.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=YEpJPi6luUJgkduXN/mLG4mAarW4YgsDn2Zxr4/+uFMH4M9dMWYr6VecFJLDHcQXMX TZKzp7OOPTu4lBxiTGRt8iO8byFY2dihCRrqaZ52NRrk79as9ft/RpCSVRFlphrt0O4Q f2lBT4fI8yEInQZS/JSZ/zOw4Lryp2AnXyJKzGyzXrDtlLStOyjJaF7HftrmwbdH7euS 6YVqntHl7aiZelz3aGnjbecrsUs2W7X0MU6kgKj2syDP/os8cFF7QoQDOJ0F1zkmlPgq gD7M7/ZVPCHaO9YkcfpzDjgavoerA1DFKJ6vzWo+w9GUtylIjREXHaqDAolPPhgWLsa8 ZHtQ== X-Gm-Message-State: AOJu0Yyo3nsM6EX95tGXBxnRnevHzXfqY8mNYA2QKo6KHAjeN+zbsBTg Iw0gkt28W9YoSnPtoCcEC0bBYLmO6GkBubH1wFBnY9FFJnarPvT82xgA/dKW69HuvvoSg/e7aR0 PVkyLZUx7E5RUC6xSR4uvwicJ X-Received: by 2002:a17:902:d2cb:b0:1cf:de3e:e4c9 with SMTP id n11-20020a170902d2cb00b001cfde3ee4c9mr23769909plc.29.1701402442620; Thu, 30 Nov 2023 19:47:22 -0800 (PST) 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 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 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Thu, 30 Nov 2023 19:47:36 -0800 (PST) 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