Re: [PATCH v3 3/5] powerpc/smp: Rename init_thread_group_l1_cache_map() to make it generic

From: Srikar Dronamraju
Date: Tue Dec 15 2020 - 03:44:53 EST


* Gautham R. Shenoy <ego@xxxxxxxxxxxxxxxxxx> [2020-12-10 16:08:57]:

> From: "Gautham R. Shenoy" <ego@xxxxxxxxxxxxxxxxxx>
>
> init_thread_group_l1_cache_map() initializes the per-cpu cpumask
> thread_group_l1_cache_map with the core-siblings which share L1 cache
> with the CPU. Make this function generic to the cache-property (L1 or
> L2) and update a suitable mask. This is a preparatory patch for the
> next patch where we will introduce discovery of thread-groups that
> share L2-cache.
>
> No functional change.
>

Looks good to me.

Reviewed-by: Srikar Dronamraju <srikar@xxxxxxxxxxxxxxxxxx>

> Signed-off-by: Gautham R. Shenoy <ego@xxxxxxxxxxxxxxxxxx>
--
Thanks and Regards
Srikar Dronamraju