static cpumask_t cpu_coregroup_map(int cpu)
{ /* * Presently all SH-X3 SMP cores are multi-cores, so just keep it * simple until we have a method for determining topology..
*/ return *cpu_possible_mask;
}
staticint __init topology_init(void)
{ int i, ret;
for_each_present_cpu(i) { struct cpu *c = &per_cpu(cpu_devices, i);
c->hotpluggable = 1;
ret = register_cpu(c, i); if (unlikely(ret))
printk(KERN_WARNING "%s: register_cpu %d failed (%d)\n",
__func__, i, ret);
}
#ifdefined(CONFIG_NUMA) && !defined(CONFIG_SMP) /* * In the UP case, make sure the CPU association is still * registered under each node. Without this, sysfs fails * to make the connection between nodes other than node0 * and cpu0.
*/
for_each_online_node(i) if (i != numa_node_id())
register_cpu_under_node(raw_smp_processor_id(), i); #endif
return 0;
}
subsys_initcall(topology_init);
Messung V0.5
¤ Dauer der Verarbeitung: 0.13 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.