Re: [PATCH v4 10/18] x86/intel_rdt: Build structures for each resource based on cache topology

2016-10-17 Thread Thomas Gleixner
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

[PATCH v4 10/18] x86/intel_rdt: Build structures for each resource based on cache topology

2016-10-14 Thread Fenghua Yu
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