Re: [PATCH v3] powercap/rapl: reduce ipi calls

2016-02-17 Thread Thomas Gleixner
On Wed, 17 Feb 2016, Jacob Pan wrote: > On Wed, 17 Feb 2016 17:04:41 +0100 (CET) > Thomas Gleixner wrote: > > > > > > > > > for_each_online_cpu(i) { > > > > if (topology_physical_package_id(i) == > > > > package_id) > > > > This is still crap. We

Re: [PATCH v3] powercap/rapl: reduce ipi calls

2016-02-17 Thread Thomas Gleixner
On Wed, 17 Feb 2016, Jacob Pan wrote: > On Wed, 17 Feb 2016 17:04:41 +0100 (CET) > Thomas Gleixner wrote: > > > > > > > > > for_each_online_cpu(i) { > > > > if (topology_physical_package_id(i) == > > > > package_id) > > > > This is still crap. We really want a proper

Re: [PATCH v3] powercap/rapl: reduce ipi calls

2016-02-17 Thread Jacob Pan
On Wed, 17 Feb 2016 17:04:41 +0100 (CET) Thomas Gleixner wrote: > > > > > > for_each_online_cpu(i) { > > > if (topology_physical_package_id(i) == > > > package_id) > > This is still crap. We really want a proper handling for that which > does not require

Re: [PATCH v3] powercap/rapl: reduce ipi calls

2016-02-17 Thread Jacob Pan
On Wed, 17 Feb 2016 17:04:41 +0100 (CET) Thomas Gleixner wrote: > > > > > > for_each_online_cpu(i) { > > > if (topology_physical_package_id(i) == > > > package_id) > > This is still crap. We really want a proper handling for that which > does not require these silly

Re: [PATCH v3] powercap/rapl: reduce ipi calls

2016-02-17 Thread Thomas Gleixner
On Tue, 16 Feb 2016, Rafael J. Wysocki wrote: > On Friday, January 15, 2016 11:04:13 AM Jacob Pan wrote: > > Reduce remote CPU calls for MSR access by combining read > > modify write into one function. Also optimize search for active CPU on > > package such that remote CPU is not used if the

Re: [PATCH v3] powercap/rapl: reduce ipi calls

2016-02-17 Thread Thomas Gleixner
On Tue, 16 Feb 2016, Rafael J. Wysocki wrote: > On Friday, January 15, 2016 11:04:13 AM Jacob Pan wrote: > > Reduce remote CPU calls for MSR access by combining read > > modify write into one function. Also optimize search for active CPU on > > package such that remote CPU is not used if the

Re: [PATCH v3] powercap/rapl: reduce ipi calls

2016-02-15 Thread Rafael J. Wysocki
On Friday, January 15, 2016 11:04:13 AM Jacob Pan wrote: > Reduce remote CPU calls for MSR access by combining read > modify write into one function. Also optimize search for active CPU on > package such that remote CPU is not used if the current CPU is already > on the target package. > >

Re: [PATCH v3] powercap/rapl: reduce ipi calls

2016-02-15 Thread Rafael J. Wysocki
On Friday, January 15, 2016 11:04:13 AM Jacob Pan wrote: > Reduce remote CPU calls for MSR access by combining read > modify write into one function. Also optimize search for active CPU on > package such that remote CPU is not used if the current CPU is already > on the target package. > >