Lines Matching +full:cache +full:- +full:unified
10 * Populate cpu entries in sysfs for non-numa systems as well
11 * Intel Corporation - Ashok Raj
13 * Populate cpu cache entries in sysfs for cpu cache info
35 if (cpu_data(num)->socket_id == -1) in arch_fix_phys_package_id()
36 cpu_data(num)->socket_id = slot; in arch_fix_phys_package_id()
46 * If CPEI can be re-targeted or if this is not in arch_register_cpu()
76 * MCD - Do we want to register all ONLINE nodes, or all POSSIBLE nodes? in topology_init()
86 panic("kzalloc in topology_init failed - NR_CPUS too big?"); in topology_init()
100 * Export cpu cache information through sysfs
110 "Unified" /* unified */
145 if (cpu_data(cpu)->threads_per_core <= 1 && in cache_shared_cpu_map_setup()
146 cpu_data(cpu)->cores_per_socket <= 1) { in cache_shared_cpu_map_setup()
147 cpumask_set_cpu(cpu, &this_leaf->shared_cpu_map); in cache_shared_cpu_map_setup()
151 if (ia64_pal_cache_shared_info(this_leaf->level, in cache_shared_cpu_map_setup()
152 this_leaf->type, in cache_shared_cpu_map_setup()
160 if (cpu_data(cpu)->socket_id == cpu_data(j)->socket_id in cache_shared_cpu_map_setup()
161 && cpu_data(j)->core_id == csi.log1_cid in cache_shared_cpu_map_setup()
162 && cpu_data(j)->thread_id == csi.log1_tid) in cache_shared_cpu_map_setup()
163 cpumask_set_cpu(j, &this_leaf->shared_cpu_map); in cache_shared_cpu_map_setup()
167 ia64_pal_cache_shared_info(this_leaf->level, in cache_shared_cpu_map_setup()
168 this_leaf->type, in cache_shared_cpu_map_setup()
176 cpumask_set_cpu(cpu, &this_leaf->shared_cpu_map); in cache_shared_cpu_map_setup()
184 return sprintf(buf, "%u\n", 1 << this_leaf->cci.pcci_line_size); in show_coherency_line_size()
190 return sprintf(buf, "%u\n", this_leaf->cci.pcci_assoc); in show_ways_of_associativity()
197 cache_mattrib[this_leaf->cci.pcci_cache_attr]); in show_attributes()
202 return sprintf(buf, "%uK\n", this_leaf->cci.pcci_cache_size / 1024); in show_size()
207 unsigned number_of_sets = this_leaf->cci.pcci_cache_size; in show_number_of_sets()
208 number_of_sets /= this_leaf->cci.pcci_assoc; in show_number_of_sets()
209 number_of_sets /= 1 << this_leaf->cci.pcci_line_size; in show_number_of_sets()
219 &this_leaf->shared_cpu_map, cpu_online_mask); in show_shared_cpu_map()
226 int type = this_leaf->type + this_leaf->cci.pcci_unified; in show_type()
232 return sprintf(buf, "%u\n", this_leaf->level); in show_level()
278 ret = fattr->show ? fattr->show(this_leaf, buf) : 0; in ia64_cache_show()
315 return -1; in cpu_cache_sysfs_init()
321 return -ENOMEM; in cpu_cache_sysfs_init()
324 for (j=2; j >0 ; j--) { in cpu_cache_sysfs_init()
347 /* Add cache interface for CPU device */
364 &cache_ktype_percpu_entry, &sys_dev->kobj, in cache_add_dev()
365 "%s", "cache"); in cache_add_dev()
373 retval = kobject_init_and_add(&(this_object->kobj), in cache_add_dev()
379 kobject_put(&(LEAF_KOBJECT_PTR(cpu,j)->kobj)); in cache_add_dev()
385 kobject_uevent(&(this_object->kobj), KOBJ_ADD); in cache_add_dev()
391 /* Remove cache interface for CPU device */
397 kobject_put(&(LEAF_KOBJECT_PTR(cpu,i)->kobj)); in cache_remove_dev()