From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1949192AbcBSWYQ (ORCPT ); Fri, 19 Feb 2016 17:24:16 -0500 Received: from mga14.intel.com ([192.55.52.115]:24502 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1946149AbcBSWYO (ORCPT ); Fri, 19 Feb 2016 17:24:14 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.22,472,1449561600"; d="scan'208";a="916915392" Date: Fri, 19 Feb 2016 14:23:00 -0800 From: Jacob Pan To: Thomas Gleixner Cc: LKML , Rafael Wysocki , Linux PM , Srinivas Pandruvada , Peter Zijlstra , "David S. Miller" , Andrew Morton , Rusty Russell , jacob.jun.pan@linux.intel.com Subject: Re: [PATCH v4 2/2] powercap/rapl: reduce ipi calls Message-ID: <20160219142300.22e98084@icelake> In-Reply-To: References: <1455914253-18138-1-git-send-email-jacob.jun.pan@linux.intel.com> <1455914253-18138-3-git-send-email-jacob.jun.pan@linux.intel.com> Organization: OTC X-Mailer: Claws Mail 3.9.3 (GTK+ 2.24.23; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 19 Feb 2016 23:01:59 +0100 (CET) Thomas Gleixner wrote: > > > + if (lead_cpu < nr_cpu_ids) > > > + new_package->lead_cpu = > > > lead_cpu; > > > > So the above is identical to > > > > new_package->lead_cpu = lead_cpu; > > new_package->lead_cpu = i; you are absolutely right. i is already the answer here. Thanks, Jacob