Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2953388yba; Mon, 6 May 2019 14:28:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqyZB2KVfKVHw/r11FJqEEbPUXq1E/HOb7Qm9O8EYgq1+3fm4Kn1plyaynUsf2v3NaUFVLtb X-Received: by 2002:a65:6449:: with SMTP id s9mr4614136pgv.90.1557178106232; Mon, 06 May 2019 14:28:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557178106; cv=none; d=google.com; s=arc-20160816; b=CDNvasNQMRMBhItIDfax0rTHyb3mEna5amumiTKTJgGE0/toVVTp9enFjEHwrpTmK1 cHMu0PFhd7J362cKu372tIVOl+1LTnML+NHte+qzBzb6wzcU1fI1bIpBhzT47OL/jYE4 xswkLJ2bktSeybEMAKKtAGIbGYb4D9i0NYk+x6LScoAZ67NgiX1YTN/ZC+UFWJ+YfKsG hSLt2pexYWC7xzhFfWBEwJzTorqzF4pbGoo3StIoFPaQeVYHz87eU0pLaeNyeraYniCI 0Q4+P/uVUR1E6ykxfMhvez86ZnQ1+yNi7iFQB1mKmIhZSmg/wmiQZB8BWUv7DEttmz30 KD8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:organization:reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=NASL/z1GXMPb/S94wC/bcg3jCMGLXonBlWTVA+tl8Ss=; b=TECGG6AH7ceDQZYBD8XG6iYOTXEGuZIS0jk7A3pvKtAF5rs+R9wxR+UrUa7ayiFVkv Brr2goi8ds4GbV5UjWr4jlzNReXR/PqLZIDX81MsfkQHWew2mgRtMI4Vd6a70OT/9Pt8 PofPIaHBfo5ok1GB4vFVnnBGUDnDXiOEsfILQBhbEIdMgQAh1hF+6e4wKp9rv1ZMaR1u g7bSJjKsWaGceoQ/mMpetitG8b4vZyWA4/+uZKa73iw4IXseABAp1/u4oibdjszjqZYK l+eghJsVVKgXpy5v+8+kw+zVQnEORvaDY/iIO+5tRxuVSMqLDpn43RPCa5DKPSMkjFQc ciSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=iAZl6p5N; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z21si16195408plo.238.2019.05.06.14.28.11; Mon, 06 May 2019 14:28:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=iAZl6p5N; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727078AbfEFV05 (ORCPT + 99 others); Mon, 6 May 2019 17:26:57 -0400 Received: from mail-it1-f195.google.com ([209.85.166.195]:51656 "EHLO mail-it1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727061AbfEFV0x (ORCPT ); Mon, 6 May 2019 17:26:53 -0400 Received: by mail-it1-f195.google.com with SMTP id s3so10676471itk.1 for ; Mon, 06 May 2019 14:26:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :reply-to:organization; bh=NASL/z1GXMPb/S94wC/bcg3jCMGLXonBlWTVA+tl8Ss=; b=iAZl6p5NKE7JVwuEDyKvQ/i+Sz4xzWZ/3bc+o1S/o/6hXbqiwFOJXLaC3/3W4pevUR PyvLE005JiuSt4DCHHRC/aXo5Uvirsal4Sb9VRfYRENlxjcdlnlyNMqNMSbMmjo1K1+n SL0w3ADiKNHd8LTwoCvFxMhz4QVkHQ8fXiBsrnlJDqUnpGgswq75B43l9CtSbpns3OZ6 lxPCKevPQLsGHAxFS1rxmAXnJIAld03iu4/b9n5kNs+Wifq9+6K2STVh6sJqQ3xpy2d0 4ASxEnv5V2kbNW6y/glJ72vgSxuvXTKAb61RvxAZVRbyfP6LGeKsPprBJ6uYeEY3Gkkq lexQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:reply-to:organization; bh=NASL/z1GXMPb/S94wC/bcg3jCMGLXonBlWTVA+tl8Ss=; b=cKxo7hv+nIp7Z0qCHsJhtGi/WJdNyMKau2SUu36gbENSsc8UtH8bFFoejR9EMcPgyE u6O6LQ3SiEq7Jd8bPdswyhISTdoWBRnm3WIlU84GIX85pqG83/CftFu28l86QZcQr852 2FPYRM8H2qxlujIHUO0tYSCNpBvSfxWY+bA6QvsHBRj0V0XFXoNiSnXROtYaVdT7LItk zn4ke3DcmuJ6kdu2OVJe0YPtdDW1RE0TRGoxcMeTruT+tNzyj5QR5EOEP/2jcViSUsWW Peiiv6m7hH5qU99Hrno1NisKED9RkEGaIF05miTdK7/PxZZQ0OeofMF9hJJ0LJv9+yG5 5rCQ== X-Gm-Message-State: APjAAAUA89KtQLJvVqMjLqs/2Z0WASUi7Kjfs6fQY8FoAl/KGFmDFp6M QvOqJjeTV8s/hEUwYWcABIg= X-Received: by 2002:a05:660c:acb:: with SMTP id k11mr20017103itl.1.1557178013127; Mon, 06 May 2019 14:26:53 -0700 (PDT) Received: from nuc8.lan (h69-131-112-51.cntcnh.dsl.dynamic.tds.net. [69.131.112.51]) by smtp.gmail.com with ESMTPSA id v25sm4268009ioh.81.2019.05.06.14.26.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 06 May 2019 14:26:52 -0700 (PDT) From: Len Brown To: x86@kernel.org Cc: linux-kernel@vger.kernel.org, Len Brown , Kan Liang Subject: [PATCH 22/22] perf/x86/intel/rapl: rename internal variables in response to multi-die/pkg support Date: Mon, 6 May 2019 17:26:17 -0400 Message-Id: <9f57786ba08d4d5e913cd21693aadb0ccdba72b2.1557177585.git.len.brown@intel.com> X-Mailer: git-send-email 2.18.0-rc0 In-Reply-To: <6f53f0e494d743c79e18f6e3a98085711e6ddd0c.1557177585.git.len.brown@intel.com> References: <6f53f0e494d743c79e18f6e3a98085711e6ddd0c.1557177585.git.len.brown@intel.com> Reply-To: Len Brown Organization: Intel Open Source Technology Center Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Len Brown Syntax update only -- no logical or functional change. In response to the new multi-die/package changes, update variable names to use the more generic "pmuid" terminology, instead of "pkgid", as the pmu can refer to either packages or die. Signed-off-by: Len Brown Cc: Kan Liang --- arch/x86/events/intel/rapl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/events/intel/rapl.c b/arch/x86/events/intel/rapl.c index e49f69c51b10..497eae4b4c9b 100644 --- a/arch/x86/events/intel/rapl.c +++ b/arch/x86/events/intel/rapl.c @@ -161,13 +161,13 @@ static u64 rapl_timer_ms; static inline struct rapl_pmu *cpu_to_rapl_pmu(unsigned int cpu) { - unsigned int pkgid = topology_logical_die_id(cpu); + unsigned int pmuid = topology_logical_die_id(cpu); /* * The unsigned check also catches the '-1' return value for non * existent mappings in the topology map. */ - return pkgid < rapl_pmus->maxpkg ? rapl_pmus->pmus[pkgid] : NULL; + return pmuid < rapl_pmus->maxpkg ? rapl_pmus->pmus[pmuid] : NULL; } static inline u64 rapl_read_counter(struct perf_event *event) -- 2.18.0-rc0