Re: [PATCH 1/2] powercap/intel_rapl: Use topology interface in rapl_add_package()

2021-02-12 Thread Rafael J. Wysocki
On Sat, Jan 23, 2021 at 11:07 AM Yunfeng Ye wrote: > > It's not a good way to access phys_proc_id and cpu_die_id directly. > So using topology_physical_package_id(cpu) and topology_die_id(cpu) > instead. > > Signed-off-by: Yunfeng Ye > --- > drivers/powercap/intel_rapl_common.c | 6 +++--- > 1 f

Re: [PATCH 1/2] powercap/intel_rapl: Use topology interface in rapl_add_package()

2021-02-05 Thread Rafael J. Wysocki
On Sat, Jan 23, 2021 at 11:07 AM Yunfeng Ye wrote: > > It's not a good way to access phys_proc_id and cpu_die_id directly. > So using topology_physical_package_id(cpu) and topology_die_id(cpu) > instead. > > Signed-off-by: Yunfeng Ye Srinivas, Rui, any concerns? > --- > drivers/powercap/intel_

Re: [PATCH 1/2] powercap/intel_rapl: Use topology interface in rapl_add_package()

2021-02-05 Thread Srinivas Pandruvada
On Fri, 2021-02-05 at 13:45 +0100, Rafael J. Wysocki wrote: > On Sat, Jan 23, 2021 at 11:07 AM Yunfeng Ye > wrote: > > It's not a good way to access phys_proc_id and cpu_die_id directly. > > So using topology_physical_package_id(cpu) and topology_die_id(cpu) > > instead. > > > > Signed-off-by: Yu

[PATCH 1/2] powercap/intel_rapl: Use topology interface in rapl_add_package()

2021-01-23 Thread Yunfeng Ye
It's not a good way to access phys_proc_id and cpu_die_id directly. So using topology_physical_package_id(cpu) and topology_die_id(cpu) instead. Signed-off-by: Yunfeng Ye --- drivers/powercap/intel_rapl_common.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/po