Lines Matching +full:cache +full:- +full:unified
9 * Populate cpu entries in sysfs for non-numa systems as well
10 * Intel Corporation - Ashok Raj
12 * Populate cpu cache entries in sysfs for cpu cache info
34 if (cpu_data(num)->socket_id == -1) in arch_fix_phys_package_id()
35 cpu_data(num)->socket_id = slot; in arch_fix_phys_package_id()
45 * If CPEI can be re-targeted or if this is not in arch_register_cpu()
75 * MCD - Do we want to register all ONLINE nodes, or all POSSIBLE nodes? in topology_init()
85 panic("kzalloc in topology_init failed - NR_CPUS too big?"); in topology_init()
99 * Export cpu cache information through sysfs
109 "Unified" /* unified */
144 if (cpu_data(cpu)->threads_per_core <= 1 && in cache_shared_cpu_map_setup()
145 cpu_data(cpu)->cores_per_socket <= 1) { in cache_shared_cpu_map_setup()
146 cpumask_set_cpu(cpu, &this_leaf->shared_cpu_map); in cache_shared_cpu_map_setup()
150 if (ia64_pal_cache_shared_info(this_leaf->level, in cache_shared_cpu_map_setup()
151 this_leaf->type, in cache_shared_cpu_map_setup()
159 if (cpu_data(cpu)->socket_id == cpu_data(j)->socket_id in cache_shared_cpu_map_setup()
160 && cpu_data(j)->core_id == csi.log1_cid in cache_shared_cpu_map_setup()
161 && cpu_data(j)->thread_id == csi.log1_tid) in cache_shared_cpu_map_setup()
162 cpumask_set_cpu(j, &this_leaf->shared_cpu_map); in cache_shared_cpu_map_setup()
166 ia64_pal_cache_shared_info(this_leaf->level, in cache_shared_cpu_map_setup()
167 this_leaf->type, in cache_shared_cpu_map_setup()
175 cpumask_set_cpu(cpu, &this_leaf->shared_cpu_map); in cache_shared_cpu_map_setup()
183 return sprintf(buf, "%u\n", 1 << this_leaf->cci.pcci_line_size); in show_coherency_line_size()
189 return sprintf(buf, "%u\n", this_leaf->cci.pcci_assoc); in show_ways_of_associativity()
196 cache_mattrib[this_leaf->cci.pcci_cache_attr]); in show_attributes()
201 return sprintf(buf, "%uK\n", this_leaf->cci.pcci_cache_size / 1024); in show_size()
206 unsigned number_of_sets = this_leaf->cci.pcci_cache_size; in show_number_of_sets()
207 number_of_sets /= this_leaf->cci.pcci_assoc; in show_number_of_sets()
208 number_of_sets /= 1 << this_leaf->cci.pcci_line_size; in show_number_of_sets()
218 &this_leaf->shared_cpu_map, cpu_online_mask); in show_shared_cpu_map()
225 int type = this_leaf->type + this_leaf->cci.pcci_unified; in show_type()
231 return sprintf(buf, "%u\n", this_leaf->level); in show_level()
277 ret = fattr->show ? fattr->show(this_leaf, buf) : 0; in ia64_cache_show()
314 return -1; in cpu_cache_sysfs_init()
320 return -ENOMEM; in cpu_cache_sysfs_init()
323 for (j=2; j >0 ; j--) { in cpu_cache_sysfs_init()
346 /* Add cache interface for CPU device */
363 &cache_ktype_percpu_entry, &sys_dev->kobj, in cache_add_dev()
364 "%s", "cache"); in cache_add_dev()
372 retval = kobject_init_and_add(&(this_object->kobj), in cache_add_dev()
378 kobject_put(&(LEAF_KOBJECT_PTR(cpu,j)->kobj)); in cache_add_dev()
384 kobject_uevent(&(this_object->kobj), KOBJ_ADD); in cache_add_dev()
390 /* Remove cache interface for CPU device */
396 kobject_put(&(LEAF_KOBJECT_PTR(cpu,i)->kobj)); in cache_remove_dev()