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 12979C4332F for ; Mon, 13 Nov 2023 00:45:41 +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=smDKYroW2fzSj+pa5tdoH9nBI5jb139lxim7adQxk78=; b=c5lPu7I6Y3jdp2 M9W75NkT29KRo1eZhOCSGaE04OB+3mJ11HmqDfsnzEAX8I0eHGdpqdZuJbJ3cfpWQE7eGlchFLoiD lWOfjEDOjxNklgon4WoNF7vpJZxatw20t7avomvxZRCBjXvRMeg1pKj1oNyJXOAotq4uYVY8dNWX8 4oX5OnlxaxR6OsLLgLKp72XlVA3T8UousaDuZtcwZLFaPKZredIMQikTqQsf0r7ohVa5WOsF39fNx 6kfD/7X+R3V69Ds4limH2sYQWOsHLPiuxi3jMnjG/aXbYpal7ciJTRIC17RIST5Y4U/laX+F2aOfz YR5ysEOeQTc0OFxvbLnA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r2L4q-00CwLa-0w; Mon, 13 Nov 2023 00:45:20 +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 1r2L4o-00CwL0-0b for linux-arm-kernel@lists.infradead.org; Mon, 13 Nov 2023 00:45:19 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1699836317; 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=QhzCdqOF/peHHu1nOYDpgVSLfbgiev3pSlpxpwSazaaOS/OI8bnFYsbUWI1/uDTVg8c9y9 LVc2Z3DKOC7uo10Dxds2VvPqfvx5xw6gyw0AGK8zxfxwO4lDMa/NA8OEMkOzImsMZC+7yl QoagdbuAEi8bAiozJl+qW0kpxoJXxYM= Received: from mail-oa1-f69.google.com (mail-oa1-f69.google.com [209.85.160.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-70-1wDssj1BMeOd0DY0r-O8OQ-1; Sun, 12 Nov 2023 19:45:15 -0500 X-MC-Unique: 1wDssj1BMeOd0DY0r-O8OQ-1 Received: by mail-oa1-f69.google.com with SMTP id 586e51a60fabf-1eb43ff49b2so3642380fac.2 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=d/ejIfVPnXbJWucz6Lvkciv1/LRJnRxvZRRpXg7TCekyWz6ix03UqGsbFv8b1H85+k 4uEmdxOCa9JYUFGY4+0peEMYq+QKqAbEjr6VRPudv3qUwabCZwC6/i6u4yCN8U06hNnw mayGWMIw6e8eX1GK9ubuZR3vdOQuzCsYdzy8W985IuJC5tcNqXukJZpr6q0cFJXvJRgQ dLkSrf6IOcu1O0i3E63cRXYXyx7DY7tRxqi7TTCA/3WpDkOEVt91vHUmzHV7RNqNwX6/ pK/2qrpDzyRN2z9RwQpnywNftxzmIO73HD8kvKqQkgEfuxmL/rrea1NzSENxFCy/8cQB 8PJw== X-Gm-Message-State: AOJu0Yx6r9MshjNJLq7l/0hHasjVU4PtXKco6qXtbbKeVVGA1UPHExzE OlvuPxmuzvBqYbzhCSKuUbt4jB5Kvec4CS05ZTeHD2pXSvlBbhOZdrk9Igi8OTHyodL+aCJrmK/ i716LhJmCe4ssknPSCWJpv+mfCie1wBVrA0E= X-Received: by 2002:a05:6870:f14d:b0:1d5:b2ba:bc93 with SMTP id l13-20020a056870f14d00b001d5b2babc93mr7060123oac.13.1699836315184; 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 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH RFC 08/22] drivers: base: Implement weak arch_unregister_cpu() 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: 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-20231112_164518_318686_F543D49C X-CRM114-Status: GOOD ( 13.02 ) 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 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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel