/* sysfs.c: Toplogy sysfs support code for sparc64. * * Copyright (C) 2007 David S. Miller */ #include #include #include #include #include static DEFINE_PER_CPU(struct cpu, cpu_devices); static int __init topology_init(void) { int cpu; for_each_possible_cpu(cpu) { struct cpu *c = &per_cpu(cpu_devices, cpu); register_cpu(c, cpu); } return 0; } subsys_initcall(topology_init);