Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp149260imp; Wed, 20 Feb 2019 21:45:02 -0800 (PST) X-Google-Smtp-Source: AHgI3IZ39/ITcGJydo7wH2dgtyMaTQq5jOqnt8pBK8gR7udl30yyzsXFoU3bY1QIFj/l8GzvdWwm X-Received: by 2002:a17:902:bc3:: with SMTP id 61mr40933567plr.15.1550727902015; Wed, 20 Feb 2019 21:45:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550727902; cv=none; d=google.com; s=arc-20160816; b=PClba4MUg7PZ/3J5O0+le9stb1xcUCOdajvwQeFIEL4/R4PB3Qo9jcRbVeynd5QceY uA42VCVIcezsvJP23eV6IjBlOvJ5wSEQuJpd0HFM0jzcayT0mA/gY4dX35ZpvrIc4z+B Z5w2MIJ0YZFHoag8lllvTIt0yT3AzpGzIGqJfOl3/xImj1ap/6O/a92U/D+3Y6twc4+o dpTo3UCXms3pW1qqqCiD1/bBuBdjDWlii5ceZu/mLFCwPfS3Mhlp5sMPoAjFzSrsYXkn a2VRBlN/W04wYzrjgSfVvmx5cL5r4QXGU4a4v++D30zOS8y00sVSwCT7s+9E+muW1X3W Rx9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=mAiUTh5C3KVRnAHSSCluCo8bp+b0QIp4Uk1XhqYvfIk=; b=OrEzhYgTmVgPHzjC/oIdgJQI6PNTGGR4M/N0diPuU363n/5Q4gqFu/5jC5Ubkt91EA kNo4yoIpe32fjnBb9SW1Bm1U4kel6z8P3BtemA/3uaKWRUm5JPSLMHpXZ9fen5UUZnxA ye4TaU7GWEYgtaHE64cxGIE77kCVFzZKZ+o+Musq30vl/WhTfgL3mKx8zo1hzuz+f0GY yjT7UdXGMJeq9+/n8hDo7gz/H6fPn2Lu7JoVACsykzRllkXbfTuQmNm6uS4O7vsrerG+ qzupb+XFGXUr+C/izkLreyx076wwKqWXRt5aWW75UwE2K9BTPTQgCWyO7Kdb54+jpLhh 5lWQ== ARC-Authentication-Results: i=1; mx.google.com; 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 cg7si16635776plb.127.2019.02.20.21.44.45; Wed, 20 Feb 2019 21:45:02 -0800 (PST) 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; 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 S1726429AbfBUFoY (ORCPT + 99 others); Thu, 21 Feb 2019 00:44:24 -0500 Received: from mail-ed1-f66.google.com ([209.85.208.66]:33434 "EHLO mail-ed1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725785AbfBUFoY (ORCPT ); Thu, 21 Feb 2019 00:44:24 -0500 Received: by mail-ed1-f66.google.com with SMTP id c55so4282769edb.0; Wed, 20 Feb 2019 21:44:23 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=mAiUTh5C3KVRnAHSSCluCo8bp+b0QIp4Uk1XhqYvfIk=; b=RESPUi4Hb5mq86icM2In28cOekskMUNCFioCXzL0Jv8TCB6HclmJtmQtNgtZXTL0yW yZmxHvrntFBDyTSPGkY2Ud6sSEvJENhKEP9Wx6ZqA4pU0QKdLPhwnZABT61hUul5MOke sFwxRFNvUIsFSrAuFFb5r4L08DgmCwq282JKYUGS/q50rQk6sG+flhXJTr55OsmImjja s7Eqa6QmfygF3SSxf4kCDI1Guc6kU968CcqJJA8QdO4SFse5LLHfAAm60nZBiWuS1sHP 35cPBvSIetGcLUaxcfuNhhiJsePoONzasunHMLrybGtmlhOvG4dATrKYFXJdpJQ07bZO H90w== X-Gm-Message-State: AHQUAuZSknMVPfPlTKv+K+Emrxg4PnicPGTU87u0ujLY1kIbPlXfSr3g EL2Z6WFJjE+5T8cto+iXYDDYe1Ju3HOHfkPeUhc= X-Received: by 2002:a17:906:e2d4:: with SMTP id gr20mr2558488ejb.210.1550727862949; Wed, 20 Feb 2019 21:44:22 -0800 (PST) MIME-Version: 1.0 References: <635b2bf8b1151a191cd9299276b75791a818c0c2.1550545163.git.len.brown@intel.com> <3349c9e551eecbfe849320c0e938daf4e0126734.1550545163.git.len.brown@intel.com> <20190220110200.GD17969@hirez.programming.kicks-ass.net> In-Reply-To: <20190220110200.GD17969@hirez.programming.kicks-ass.net> From: Len Brown Date: Thu, 21 Feb 2019 00:44:11 -0500 Message-ID: Subject: Re: [PATCH 08/11] powercap/intel_rapl: Support multi-die/package To: Peter Zijlstra Cc: X86 ML , linux-kernel@vger.kernel.org, Zhang Rui , Len Brown , Linux PM list Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 20, 2019 at 6:02 AM Peter Zijlstra wrote: > > list_for_each_entry(rp, &rapl_packages, plist) { > > @@ -1457,7 +1457,7 @@ static void rapl_remove_package(struct rapl_package *rp) > > /* called from CPU hotplug notifier, hotplug lock held */ > > static struct rapl_package *rapl_add_package(int cpu) > > { > > - int id = topology_physical_package_id(cpu); > > + int id = topology_unique_die_id(cpu); > > struct rapl_package *rp; > > int ret; > > And now your new function names are misnomers. That is fair. Seems that a subsequent re-name-only patch is appropriate. Len Brown, Intel Open Source Technology Center