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 140C5C4332F for ; Mon, 13 Nov 2023 04:21:37 +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=TjokYTj0rG6fFJ7JuuqaOyp/uNLSAiPv+4sbTEgZhSU=; b=1oHfIo5kLMz5pt T6jxi0Yt++FXgPCNJSI8OGzQeBKeIMhe8Z317V/ZcGw1ixlNasmjqO/J1OirHMBJI09qwT/4FvpYm AFV/O1mlsDJzwEPcu40nnr2naYnoO8ArrrgM1dQ/DUnxgytamdiBM10m05RpuCbMX3il01VrShGUd pjvqpVXYKXUJ1iTA9CYa559GYH6essIhN2QSlAkCnUWtXTx8eIMKdwtY0bVifWM8Md30SIQvjBMMW 9FayIudHgTXPe3S+PXEymqruSY34+M4pQzH6SZH/vVN2mprhKLhFI4N4LgmZHKmBz8tUr4YxStAnA sS6Mv6MhEoQt1dMM+IKA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r2ORj-00DDtU-0g; Mon, 13 Nov 2023 04:21:11 +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 1r2ORg-00DDsN-14 for linux-arm-kernel@lists.infradead.org; Mon, 13 Nov 2023 04:21:09 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1699849267; 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=jFv0/+ZJ8QcMT7pXMYPj0XHvwSazMYJli5PQ5trCgZ4=; b=Qaj4AD4NWKE02XqzY43tk91B/sswBOd2Iaa7CDvvK9RX7AJq6iKzrFnwVIBmoCyKqZLQz+ iQAbrTX7p+hqX6eL5R3MIcF9l/AKF2VilS19989CxMIBVXslNvJ17EDHqxOwWenmcIaLJ7 ONvZksy4WMM+D70tOPh9kCnWn9VobPU= Received: from mail-yb1-f200.google.com (mail-yb1-f200.google.com [209.85.219.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-529-6x30tmlVNCCgaExzk-qwdQ-1; Sun, 12 Nov 2023 23:21:04 -0500 X-MC-Unique: 6x30tmlVNCCgaExzk-qwdQ-1 Received: by mail-yb1-f200.google.com with SMTP id 3f1490d57ef6-da03ef6fc30so4847614276.0 for ; Sun, 12 Nov 2023 20:21:04 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699849264; x=1700454064; 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=jFv0/+ZJ8QcMT7pXMYPj0XHvwSazMYJli5PQ5trCgZ4=; b=ZgCFD/crKN+q4eKmrIetfOsqvFhKy4BAN5DSGMq/Hn99IQsoSULcUzR4sdh0Fgz16s HD4XN8En6I8Is62yF9XoYlXG/3SvbSC3njUfAQEkyVv6yfVWd5uXUlASesKr3qQL6Vd2 7IrtRZanLLmWdUxmvb9+wCHIuklKGqTyejYEucOk4KuEQ3/y/WUq6Z5Z2xrQGmYyoIbZ mV9b9LPVaGvey59U6IC4LT8OhdEFjNnUrj/P9qS2zdgVr+4sM2nk3U0z/eXTsrsjzq4j 86gPafzizdI4gPCt7FLoGhRRghU6grUouVgodwu9vobLXMZtDS2RO+pMSS+5IttQwSmu O9iA== X-Gm-Message-State: AOJu0YzEhvzk8fufWj+dS30Vb4111pdUDBvCZYmnzsGOCFYly9zaPyPh EF5TnA0jbXCg+Z4Gm7MGPSugrsHrW6F8w63L7D5ed7qqHgwCPlRdoKT01lrqHR7ikS5eD5LGO16 oB/GwLSRmCD2il6XdPqe9VluMLUkmXChCIUs= X-Received: by 2002:a05:6902:1547:b0:d43:a84f:a6aa with SMTP id r7-20020a056902154700b00d43a84fa6aamr5454601ybu.39.1699849264129; Sun, 12 Nov 2023 20:21:04 -0800 (PST) X-Google-Smtp-Source: AGHT+IGuE/Omh7ETDkhtAEC+3zelpWf91MkxxlfVCO0FA1pnNxNCnMWL4q2N7gIaAN7fVOCOVWdIYg== X-Received: by 2002:a05:6902:1547:b0:d43:a84f:a6aa with SMTP id r7-20020a056902154700b00d43a84fa6aamr5454579ybu.39.1699849263873; Sun, 12 Nov 2023 20:21:03 -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 fm6-20020a056a002f8600b006c4db182074sm3111661pfb.196.2023.11.12.20.20.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 12 Nov 2023 20:21:03 -0800 (PST) Message-ID: <227771fa-1f22-4b9d-81f5-709f4f0c68c9@redhat.com> Date: Mon, 13 Nov 2023 14:20:55 +1000 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH RFC 18/22] LoongArch: Switch over to GENERIC_CPU_DEVICES 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 , Huacai Chen , WANG Xuerui 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_202108_439162_F6BB698E X-CRM114-Status: GOOD ( 20.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/7/23 20:30, Russell King (Oracle) wrote: > From: James Morse > > Now that GENERIC_CPU_DEVICES calls arch_register_cpu(), which can be > overridden by the arch code, switch over to this to allow common code > to choose when the register_cpu() call is made. > > This allows topology_init() to be removed. > > This is an intermediate step to the logic being moved to drivers/acpi, > where GENERIC_CPU_DEVICES will do the work when booting with acpi=off. > > This is a subtle change. Originally: > - on boot, topology_init() would have marked present CPUs that > io_master() is true for as hotplug-incapable. > - if a CPU is hotplugged that is an io_master(), it can later be > hot-unplugged. > > The new behaviour is that any CPU that io_master() is true for will > now always be marked as hotplug-incapable, thus even if it was > hotplugged, it can no longer be hot-unplugged. > > This patch also has the effect of moving the registration of CPUs from > subsys to driver core initialisation, prior to any initcalls running. > > Signed-off-by: James Morse > Signed-off-by: Russell King (Oracle) > --- > Changes since RFC v2: > * Explain the change in behaviour in the patch description > (highlighted by Jonathan Cameron - thanks.) Add note about > initialisation order change. > --- > arch/loongarch/Kconfig | 1 + > arch/loongarch/kernel/topology.c | 29 ++--------------------------- > 2 files changed, 3 insertions(+), 27 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