Re: [PATCH v3 01/10] x86/topology: Introduce topology_logical_core_id()

2024-06-26 Thread Zhang, Rui
> For use cases such as the per-core RAPL PMU, > there exists a need for a unique core ID across the entire system > with > multiple PKG domains. Agreed. And there are other cases that a system unique core ID is needed, like in drivers/hwmon/coretemp.c, where per-core temperature info is saved in

[PATCH v3 01/10] x86/topology: Introduce topology_logical_core_id()

2024-06-23 Thread Dhananjay Ugwekar
From: K Prateek Nayak On x86, topology_core_id() returns a unique core ID within the PKG domain. Looking at match_smt() suggests that a core ID just needs to be unique within a LLC domain. For use cases such as the per-core RAPL PMU, there exists a need for a unique core ID across the entire syst