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 63936C46CA0 for ; Fri, 1 Dec 2023 03:48:16 +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=P10j1qBC0cC8SDItBoDbC0K3X8yjpJubF1rfTR6qgnM=; b=uxqqfkszViNuX8 gGiFnfUfsS3DgeE2GImcrV3ofM2plWEbkB+nS6enDDEWXA/IRMuiDnB1fUPM90T0jG0iaJ+IJGJfx OExMqhQ8YW64F6AviOemUqe9i3lx4EXENApEnhWJenzsc5YEJ6Hxr0Bc6sIPjNUmOq5VdEru6s5lu Pq2XaMJ23vQZJGDHHfibvkCt6qht2hRH5fbPMItrAZUyvNrs8VgoCGaiIwB+wwreSg76UX+7oVqOM OKxAjpYWU3R/Bg2F4M/N9wlUJQOuk+Iwa5nKfm9qmr9du18PIQj8lU4qUQphC1LKJdcikQ779dkZX 1cExju2is//gKxHxlopw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r8uVH-00CXkb-17; Fri, 01 Dec 2023 03:47:47 +0000 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r8uUy-00CXeW-1K for linux-arm-kernel@lists.infradead.org; Fri, 01 Dec 2023 03:47:29 +0000 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-pl1-f199.google.com (mail-pl1-f199.google.com [209.85.214.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-427-Y2FPS2VGPfCgx1dCcOodLA-1; Thu, 30 Nov 2023 22:47:23 -0500 X-MC-Unique: Y2FPS2VGPfCgx1dCcOodLA-1 Received: by mail-pl1-f199.google.com with SMTP id d9443c01a7336-1cfb2811203so1337055ad.1 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=bzQb7Q+0w7HpW2JSu4wErr6Lebsu3g9rGnkU0r6asYhKssh0mn8cmNHL0G7f0JrXuB tYltbqD8mNHWw606RlA9jLw04Vu4HNvzq/eOyPsWIi2rX8bXmEKCPavgYHmyi6AGQAGq wXZaqGc3ETqAU+r0/Of/omTNKTKQ513zGLYNhCJ1CNVtOo9mmkbWm5SBPTLEz6gvaGQD 0SB7QEynNYp95RlDBb7XAuSdkBcEfUZXqOVj05LK9gvSoaxreg1F0K5j4Ro698i0Eq/L B+qR4L3YAmfX5nGFo1qZJ2IWul0uSLoPnupaPhpQPYb9Hm+gLNEBjD603nEHIikgwczc OrEw== X-Gm-Message-State: AOJu0YyutjLJMoKzSUNw3fqTufHi+AFmdzptlJxq+yYHXY6xQ38sqnXm 2vjaiP3YhHAg2UqGHrfEZCJu8r5B+hlsfn01qPRkpXV9o1AxaU8niD5Igro/ANOzK6EOegi8/lk A3jYS/a9Vz+VrtDmsmMzc/Ls+nGuWKvgwFVg= X-Received: by 2002:a17:902:d2cb:b0:1cf:de3e:e4c9 with SMTP id n11-20020a170902d2cb00b001cfde3ee4c9mr23769893plc.29.1701402442617; 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 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 08/21] 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-20231130_194728_517745_549D6B8C X-CRM114-Status: GOOD ( 15.20 ) 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/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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel