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

2021-02-05 Thread Srinivas Pandruvada
On Fri, 2021-02-05 at 13:46 +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 the phys_proc_id of cpuinfo directly. > > So using topology_physical_package_id(cpu) instead. > > > > Signed-off-by: Yunfeng Ye > > Srinivas,

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

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 the phys_proc_id of cpuinfo directly. > So using topology_physical_package_id(cpu) instead. > > Signed-off-by: Yunfeng Ye Srinivas, Rui, any concerns? > --- > drivers/powercap/intel_rapl_common.c | 2 +- > 1

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

2021-01-23 Thread Yunfeng Ye
It's not a good way to access the phys_proc_id of cpuinfo directly. So using topology_physical_package_id(cpu) instead. Signed-off-by: Yunfeng Ye --- drivers/powercap/intel_rapl_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/powercap/intel_rapl_common.c