On Fri, 14 Oct 2016, Fenghua Yu wrote:
>
> +static int get_cache_id(int cpu, int level)
> +{
> + struct cpu_cacheinfo *ci = get_cpu_cacheinfo(cpu);
> + int i;
> +
> + for (i = 0; i < ci->num_leaves; i++)
> + if (ci->info_list[i].level == level)
> + retu
From: Tony Luck
We use the cpu hotplug notifier to catch each cpu in turn and look at
its cache topology w.r.t each of the resource groups. As we discover
new resources, we initialize the bitmask array for each to the default
(full access) value.
Signed-off-by: Tony Luck
Signed-off-by: Fenghua
2 matches
Mail list logo