Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4826287pxu; Thu, 10 Dec 2020 06:29:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJyRo+VGPxEnCZKFutybIcQsLHVnWid8qJa5vvWYD3lAtiX+mzd0Gsk+akskk9WHm0KyvvZ4 X-Received: by 2002:a05:6402:14c5:: with SMTP id f5mr6553143edx.232.1607610542775; Thu, 10 Dec 2020 06:29:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607610542; cv=none; d=google.com; s=arc-20160816; b=0Qf6zkAmUxrRDltXjS9sObv8wccBhZZyBLjpgMrxy4rafYhI3/NSkG25UK7/++Ze0P bJb7FEUK4JLvsOJ+6C2uXj9WYosFB/3SxZ7PbEu5eU7g93NHfBPaXANybWsp1S2CkGYH GrYUUBtWCSUwaA0nstlkEBJJfr8NI7Nol0OhFTyA31lHheD1nF9ntjZj1D4dBEw+nPjR WxdWxEVVNNOqhqNAQ/g7WGr3FeAto4zQiYhbiwzctgF6epMTXXVVEEY15jaG+VyfXeLA Sath/sB0ARS+oJ+icDF9umaCERFoyCXjFQGpz9ygOlv38igjDdLqco1KJVnLA5CW47um /XSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=6uSbHcpSaoYBdEBNb/No1VYRzs2Ng4+6qOahQsHEX/A=; b=ztOFRleLp+O9b+VuWg6QWhpdSJ25HUJt2KdAhJ/OnW9c4uw8leUrreRxUAZ3m9KAWn uobtrpPDzx/LlCgltBwA/lB34b8NvVvbs1wVRwz53flN7LAkQBj07w9xXyXNzo4gN8tr l3UyoPumdZ/DnGDYX6QmO38pRcYfD2icOyyfflaKLy9+P67iKvh4jOc8sk1mOixNl6mw azLcrgU/IH8mQbun7sT9aQxAmR3aXpqkcCvjqd0XcRbGEr48g4RdH92/8o3HGAMb1DQK aDpNWIvlHwE1r7IrBBL3o6uznimamIs8ahIz3w6orcWMRVDBa4sLJrAVUtQW/MwXbBiz Si9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=Udl6Hpvc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g19si2550998ejh.73.2020.12.10.06.28.40; Thu, 10 Dec 2020 06:29:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=Udl6Hpvc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732879AbgLJKka (ORCPT + 99 others); Thu, 10 Dec 2020 05:40:30 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:2708 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732923AbgLJKkR (ORCPT ); Thu, 10 Dec 2020 05:40:17 -0500 Received: from pps.filterd (m0098396.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 0BAAX7Io020929; Thu, 10 Dec 2020 05:39:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id : in-reply-to : references; s=pp1; bh=6uSbHcpSaoYBdEBNb/No1VYRzs2Ng4+6qOahQsHEX/A=; b=Udl6HpvcZHL6QdyEehWtzMkAaq95W4UTFoe33GZUC+oAd0BVbtf4f7CZaBxMx66uY13K iwGxa/oL687BMLyo/CnghNiLcSj92rTmmTdOghGbMkpI1K/oDc1o4U2y6kjQx8TD3A7Y UBYA8Jzjr+a/pt+quRh0aGb7yJNrU7cXcaAm+jMp+chzIXjfAXdqZ7cDitouJb0ZM7Bw GxdpZCoYV8px14Vw1B44FxGzYKafza50HeoiYuGZrE2AjYUeAodjL+YQDyFBS1Umoflt yILNiaKfSEYZLAOaFN+s8Now7ni+ZNV9qak1ElVZfCxFG0GFzNhKFakqMi2KzcTYV/7D Ag== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 35bhdts9vy-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 10 Dec 2020 05:39:12 -0500 Received: from m0098396.ppops.net (m0098396.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.36/8.16.0.36) with SMTP id 0BAAa6Sm038865; Thu, 10 Dec 2020 05:39:11 -0500 Received: from ppma01wdc.us.ibm.com (fd.55.37a9.ip4.static.sl-reverse.com [169.55.85.253]) by mx0a-001b2d01.pphosted.com with ESMTP id 35bhdts9ve-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 10 Dec 2020 05:39:11 -0500 Received: from pps.filterd (ppma01wdc.us.ibm.com [127.0.0.1]) by ppma01wdc.us.ibm.com (8.16.0.42/8.16.0.42) with SMTP id 0BAAWKON015794; Thu, 10 Dec 2020 10:39:10 GMT Received: from b01cxnp22036.gho.pok.ibm.com (b01cxnp22036.gho.pok.ibm.com [9.57.198.26]) by ppma01wdc.us.ibm.com with ESMTP id 3581u9nt0m-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 10 Dec 2020 10:39:10 +0000 Received: from b01ledav003.gho.pok.ibm.com (b01ledav003.gho.pok.ibm.com [9.57.199.108]) by b01cxnp22036.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 0BAAd9f634210250 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 10 Dec 2020 10:39:09 GMT Received: from b01ledav003.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 95F88B2066; Thu, 10 Dec 2020 10:39:09 +0000 (GMT) Received: from b01ledav003.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 42A6EB205F; Thu, 10 Dec 2020 10:39:09 +0000 (GMT) Received: from sofia.ibm.com (unknown [9.199.53.52]) by b01ledav003.gho.pok.ibm.com (Postfix) with ESMTP; Thu, 10 Dec 2020 10:39:09 +0000 (GMT) Received: by sofia.ibm.com (Postfix, from userid 1000) id 0DA182E35A8; Thu, 10 Dec 2020 16:09:06 +0530 (IST) From: "Gautham R. Shenoy" To: Srikar Dronamraju , Anton Blanchard , Vaidyanathan Srinivasan , Michael Ellerman , Michael Neuling , Nicholas Piggin , Nathan Lynch , Peter Zijlstra , Valentin Schneider Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, "Gautham R. Shenoy" Subject: [PATCH v3 2/5] powerpc/smp: Rename cpu_l1_cache_map as thread_group_l1_cache_map Date: Thu, 10 Dec 2020 16:08:56 +0530 Message-Id: <1607596739-32439-3-git-send-email-ego@linux.vnet.ibm.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1607596739-32439-1-git-send-email-ego@linux.vnet.ibm.com> References: <1607596739-32439-1-git-send-email-ego@linux.vnet.ibm.com> X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.343,18.0.737 definitions=2020-12-10_03:2020-12-09,2020-12-10 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 spamscore=0 phishscore=0 clxscore=1015 mlxlogscore=999 bulkscore=0 suspectscore=0 adultscore=0 mlxscore=0 malwarescore=0 priorityscore=1501 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2012100070 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: "Gautham R. Shenoy" On platforms which have the "ibm,thread-groups" property, the per-cpu variable cpu_l1_cache_map keeps a track of which group of threads within the same core share the L1 cache, Instruction and Data flow. This patch renames the variable to "thread_group_l1_cache_map" to make it consistent with a subsequent patch which will introduce thread_group_l2_cache_map. This patch introduces no functional change. Signed-off-by: Gautham R. Shenoy --- arch/powerpc/kernel/smp.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/arch/powerpc/kernel/smp.c b/arch/powerpc/kernel/smp.c index 88d88ad..f3290d5 100644 --- a/arch/powerpc/kernel/smp.c +++ b/arch/powerpc/kernel/smp.c @@ -116,10 +116,10 @@ struct thread_groups_list { static struct thread_groups_list tgl[NR_CPUS] __initdata; /* - * On big-cores system, cpu_l1_cache_map for each CPU corresponds to + * On big-cores system, thread_group_l1_cache_map for each CPU corresponds to * the set its siblings that share the L1-cache. */ -DEFINE_PER_CPU(cpumask_var_t, cpu_l1_cache_map); +DEFINE_PER_CPU(cpumask_var_t, thread_group_l1_cache_map); /* SMP operations for this machine */ struct smp_ops_t *smp_ops; @@ -866,7 +866,7 @@ static struct thread_groups *__init get_thread_groups(int cpu, return tg; } -static int init_cpu_l1_cache_map(int cpu) +static int init_thread_group_l1_cache_map(int cpu) { int first_thread = cpu_first_thread_sibling(cpu); @@ -885,7 +885,7 @@ static int init_cpu_l1_cache_map(int cpu) return -ENODATA; } - zalloc_cpumask_var_node(&per_cpu(cpu_l1_cache_map, cpu), + zalloc_cpumask_var_node(&per_cpu(thread_group_l1_cache_map, cpu), GFP_KERNEL, cpu_to_node(cpu)); for (i = first_thread; i < first_thread + threads_per_core; i++) { @@ -897,7 +897,7 @@ static int init_cpu_l1_cache_map(int cpu) } if (i_group_start == cpu_group_start) - cpumask_set_cpu(i, per_cpu(cpu_l1_cache_map, cpu)); + cpumask_set_cpu(i, per_cpu(thread_group_l1_cache_map, cpu)); } return 0; @@ -976,7 +976,7 @@ static int init_big_cores(void) int cpu; for_each_possible_cpu(cpu) { - int err = init_cpu_l1_cache_map(cpu); + int err = init_thread_group_l1_cache_map(cpu); if (err) return err; @@ -1372,7 +1372,7 @@ static inline void add_cpu_to_smallcore_masks(int cpu) cpumask_set_cpu(cpu, cpu_smallcore_mask(cpu)); - for_each_cpu(i, per_cpu(cpu_l1_cache_map, cpu)) { + for_each_cpu(i, per_cpu(thread_group_l1_cache_map, cpu)) { if (cpu_online(i)) set_cpus_related(i, cpu, cpu_smallcore_mask); } -- 1.9.4