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 697EFC4332F for ; Mon, 13 Nov 2023 00:43:27 +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=tvootlV1876xEFxtGzlJCzZr0vgjdZgB+pQyzfkeik4=; b=xRPdNWMukqv3zU 1vNmMxiZpfWNmoXxUkSjqmYvDYhp4NbEx6N9U9FN1ggmOFDkENMivEF4YGUJPPZopOo3YcRiiqCCt hya5ffBjbaof/Ei5CaxrMVk18NP5pANaSoIT8yOkij4r7+7y+ArUd2XXz2G4UzViR9UcyMfdDbizE S+c8xXMzroh/hmaqzcTG+JAB2ncHG3u6q5tX25pTtAES+dDBRLL6LaDFYeGDqdvI1BkEdOPxkk8AA XQ+W/4WLSyuRi1WCSY+WsTjXpXdFzbP7ZbJ4ObjhZ2D8nYYuRBGa6rU9foJe/bBNrMhmvJhbmLhiv 9KSLKn6XgGkWycL5XdOw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r2L2f-00Cw3Q-2x; Mon, 13 Nov 2023 00:43:05 +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 1r2L2b-00Cw2F-2h for linux-arm-kernel@lists.infradead.org; Mon, 13 Nov 2023 00:43:04 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1699836181; 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=iQsxdmKsC9+VQQMbyUjXPaZGEeJW41wCAFBZ7vfsBQE=; b=io/e/jaKxSZL01hVJsdPZ/cR6b0f5bvPaBCFFgl7qayS3qbmNOCHCfsOnbd6Y/2jHTsUQm SToS9+yl+K+4Q7VUFjOIFLL3ymfGYvFCNouS4tZOekqpoGEFKRyVBzV5hkH+WkR9eogUew ChoIf5kV9PoRAY5gTiobe+7g+VNbhak= Received: from mail-pf1-f197.google.com (mail-pf1-f197.google.com [209.85.210.197]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-590-r--pYFoTPumd7yJ1Ku18Uw-1; Sun, 12 Nov 2023 19:42:57 -0500 X-MC-Unique: r--pYFoTPumd7yJ1Ku18Uw-1 Received: by mail-pf1-f197.google.com with SMTP id d2e1a72fcca58-6bdd2f09939so3639757b3a.1 for ; Sun, 12 Nov 2023 16:42:57 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699836176; x=1700440976; 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=iQsxdmKsC9+VQQMbyUjXPaZGEeJW41wCAFBZ7vfsBQE=; b=OxPAAgEnTJoxom3IGqSzEIqbwn102Qi53mepHiN8Zp7crZx5Sgp0PPlmZ4OQienwbE glEb05qILZR8FwQ7oWBoaHxO3i7Bwqi6BYA980kkOQIS5UtmHp2295u86sQkBdwWfxOu nudvp6ZH1cES+xitPDg7raWIAmYt7NHPxsUaVgRpSuyaYFAonRbASTMBJJ3iLr4eX8CN jHdMYkqxaejKQRyZTfLKhESx4sv8Y5bGfTdKZY5pV6TJHUPN1/slD/8UAgtixsctbGd3 m7bIywNhy0Lj+kB1KwodCo7phhE72QEAwYOKQIWQ0zwmSYqXzzhABmzjNT5oCxtP6vRw uQMw== X-Gm-Message-State: AOJu0Yxbb7uuepmMDxq8C+w4N6HWPywnBF4cxjrWKc2fSoGehUJg4VRl Oy05lDLFoGlPlM//xipmYnZIVelFIQAvDS9sv2+R55ZvAw2/d1cHgvllkp5a3De+0d8H3w6FSke 7XdXuBAOHlQckkXErE3OGTeGQyPQHiWsWo74= X-Received: by 2002:a05:6a20:7494:b0:174:373b:4381 with SMTP id p20-20020a056a20749400b00174373b4381mr3583323pzd.49.1699836176462; Sun, 12 Nov 2023 16:42:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IE+UqzLZrYxi+tnG161U/VKxrumNhVvJntX1X+LzLVicHXhCNQwDg9kYlUeFf4mFvRVo9YyxA== X-Received: by 2002:a05:6a20:7494:b0:174:373b:4381 with SMTP id p20-20020a056a20749400b00174373b4381mr3583318pzd.49.1699836176231; Sun, 12 Nov 2023 16:42:56 -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 q23-20020a62e117000000b006c0328b2440sm2948031pfh.150.2023.11.12.16.42.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 12 Nov 2023 16:42:55 -0800 (PST) Message-ID: Date: Mon, 13 Nov 2023 10:42:46 +1000 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH RFC 07/22] drivers: base: Allow parts of GENERIC_CPU_DEVICES to be overridden 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" , Thomas Gleixner , Peter Zijlstra 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_164302_032273_C0537A99 X-CRM114-Status: GOOD ( 13.67 ) 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 > > Architectures often have extra per-cpu work that needs doing > before a CPU is registered, often to determine if a CPU is > hotpluggable. > > To allow the ACPI architectures to use GENERIC_CPU_DEVICES, move > the cpu_register() call into arch_register_cpu(), which is made __weak > so architectures with extra work can override it. > This aligns with the way x86, ia64 and loongarch register hotplug CPUs > when they become present. > > Signed-off-by: James Morse > Signed-off-by: Russell King (Oracle) > --- > Changes since RFC: > * Dropped __init from x86/ia64 arch_register_cpu() > Changes since RFC v2: > * Dropped unnecessary Loongarch asm/cpu.h changes > --- > drivers/base/cpu.c | 14 ++++++++++---- > include/linux/cpu.h | 4 ++++ > 2 files changed, 14 insertions(+), 4 deletions(-) > Reviewed-by: Gavin Shan _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel