Re: [PATCH V2 5/7] perf/x86/intel/uncore: Move die_to_cpu() to uncore.c

From: Peter Zijlstra

Date: Fri May 29 2026 - 06:55:11 EST


On Wed, May 27, 2026 at 08:11:52AM -0700, Zide Chen wrote:
> Move die_to_cpu() into uncore.c so it can be reused by the MSR
> initialization path, preparing for the introduction of an MSR global
> initialization callback.
>
> Move the cpus_read_{lock,unlock}() out of the API, in order to make
> it possible to be called when the lock is being held.
>
> Add the uncore_ prefix for consistency with other uncore APIs.
>
> Signed-off-by: Zide Chen <zide.chen@xxxxxxxxx>
>
> V2:
> - Move cpus_read_{lock,unlock}() out of uncore_die_to_cpu() and rely
> on callers to manage the lock. (Sashiko)
> - Remove "No functional change intended" from the changelog.
> ---

V2 stuff goes under the '---' line. Otherwise I get to manually delete
it.