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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7782BC433EF for ; Tue, 5 Oct 2021 07:57:37 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 3B76661352 for ; Tue, 5 Oct 2021 07:57:37 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 3B76661352 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=3QARwSexAolWf2Y4qr7aKzuITn5ut21n+uO6kkJv9pM=; b=wyLwNndgUuHjey wiIkJh4BKU7oHVBqeKL07adejww5XP8OJJvcqfdwpF7e0p0yDd9D11mGcxkATtQFQ+pG7BYeNh+2o PDhqMkbLxkUzIwCMjDvDR5Vj8+YqePcPonUTTKakK2gi46K0j1lA/oZc8/iDEvZXOMjqVIoyhvh17 U1A/xYpZ6lTqwx6E3JdITXu/WKzYkVDX0cdaHJ3UdcFYiV+FgZCGbDrWcse3G/bN4KUjG+XNrztV5 MgmnqPRn8FikvOLjkd6CIxeGl5bHe2ec4iHFtxlpNJYiSHPS+srUpTVebXJJI3y9VztbvpRa3RXPO D/d4BKXAqpPa05JVyqZQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mXfI2-009RVh-QJ; Tue, 05 Oct 2021 07:55:06 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mXfI0-009RVD-HA for linux-arm-kernel@bombadil.infradead.org; Tue, 05 Oct 2021 07:55:04 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=7EzurNN/Tm91UcQ5AvIBpW7bZ+3LoENuHqBSaoQV8xk=; b=kpE4xAz5cHRNxaJRt9xou4YnE9 sHA5LVGxO2nDtRHM/japysN1LQgV5/KzQj+6+mDG9UzVK0DBjVpGNIDIX1N+czWMcV/YppHqT7/JP 5oQX4nxacrhS2eBq6QYE1BZ/vhXeBjjOoh/ywK4TlsF1z65lPt1llQxwvMY2dmAegRdLdlpWfz1sp sWTHmueJQHTvByDorT3dm1byf8OLHBPg0h+ibh5d5ifUziEb8dZGNYTCBvSzQhOPEFE9MsySf6SdH pjWPH8ZAkSD3zofGkdOqz+h5hT3aFYMCPNQYFts8XvIScd8CTtayjvct99ZHU4/gVn6/YRgX4Hsu5 HeElfO+w==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=worktop.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1mXfHC-0006jY-RR; Tue, 05 Oct 2021 07:54:28 +0000 Received: by worktop.programming.kicks-ass.net (Postfix, from userid 1000) id AFED898631C; Tue, 5 Oct 2021 09:54:13 +0200 (CEST) Date: Tue, 5 Oct 2021 09:54:13 +0200 From: Peter Zijlstra To: Tim Chen Cc: Barry Song <21cnbao@gmail.com>, Vincent Guittot , Dietmar Eggemann , LKML , Ingo Molnar , Aubrey Li , Borislav Petkov , Daniel Bristot de Oliveira , Ben Segall , Catalin Marinas , Greg Kroah-Hartman , Guodong Xu , "H. Peter Anvin" , Jonathan Cameron , Juri Lelli , "Cc: Len Brown" , ACPI Devel Maling List , LAK , Linuxarm , Mark Rutland , Mel Gorman , msys.mizuma@gmail.com, "Zengtao (B)" , "Rafael J. Wysocki" , Steven Rostedt , Barry Song , Sudeep Holla , Thomas Gleixner , "Rafael J. Wysocki" , Valentin Schneider , Will Deacon , x86 , yangyicong Subject: Re: [PATCH RESEND 0/3] Represent cluster topology and enable load balance between clusters Message-ID: <20211005075413.GK4323@worktop.programming.kicks-ass.net> References: <20210924085104.44806-1-21cnbao@gmail.com> <3a0f95cf5602e11fde0e21032e52aad6e137d940.camel@linux.intel.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <3a0f95cf5602e11fde0e21032e52aad6e137d940.camel@linux.intel.com> 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-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, Oct 04, 2021 at 03:54:50PM -0700, Tim Chen wrote: > diff --git a/arch/x86/include/asm/topology.h b/arch/x86/include/asm/topology.h > index 2548d824f103..cc164777e661 100644 > --- a/arch/x86/include/asm/topology.h > +++ b/arch/x86/include/asm/topology.h > @@ -109,12 +109,12 @@ extern const struct cpumask *cpu_clustergroup_mask(int cpu); > #define topology_physical_package_id(cpu) (cpu_data(cpu).phys_proc_id) > #define topology_logical_die_id(cpu) (cpu_data(cpu).logical_die_id) > #define topology_die_id(cpu) (cpu_data(cpu).cpu_die_id) > -#define topology_cluster_id(cpu) (per_cpu(cpu_l2c_id, cpu)) > #define topology_core_id(cpu) (cpu_data(cpu).cpu_core_id) > > extern unsigned int __max_die_per_package; > > #ifdef CONFIG_SMP > +#define topology_cluster_id(cpu) (per_cpu(cpu_l2c_id, cpu)) > #define topology_die_cpumask(cpu) (per_cpu(cpu_die_map, cpu)) > #define topology_cluster_cpumask(cpu) (cpu_clustergroup_mask(cpu)) > #define topology_core_cpumask(cpu) (per_cpu(cpu_core_map, cpu)) > Fixed. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel