diff --git a/arch/c6x/kernel/setup.c b/arch/c6x/kernel/setup.c index c126f0414be5..0c07921747f4 100644 --- a/arch/c6x/kernel/setup.c +++ b/arch/c6x/kernel/setup.c @@ -23,6 +23,7 @@ #include #include #include +#include #include #include @@ -493,3 +494,17 @@ const struct seq_operations cpuinfo_op = { c_next, show_cpuinfo }; + +static struct cpu cpu_devices[NR_CPUS]; + +static int __init topology_init(void) +{ + int i; + + for_each_present_cpu(i) + register_cpu(&cpu_devices[i], i); + + return 0; +} + +subsys_initcall(topology_init);