From 16f25da55e4487163f56e2918bbe9c02cb5d192d Mon Sep 17 00:00:00 2001 From: Mark Salter Date: Sun, 8 Jan 2012 13:19:38 -0500 Subject: [PATCH] --- yaml --- r: 283195 b: refs/heads/master c: 7123a6cab02ebc5dca61d0e341267578b245f2f3 h: refs/heads/master i: 283193: f39ec2d76a028a470b8fe9a83ecf82d1000a385c 283191: 873b1248facbc6c5ba03dc8ac2db1b02650b4bd5 v: v3 --- [refs] | 2 +- trunk/arch/c6x/kernel/setup.c | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index c6e56ccc681a..533270d89d2a 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: d5981a5f16ed8d648b7f44e4aa19cd25733518a3 +refs/heads/master: 7123a6cab02ebc5dca61d0e341267578b245f2f3 diff --git a/trunk/arch/c6x/kernel/setup.c b/trunk/arch/c6x/kernel/setup.c index c126f0414be5..0c07921747f4 100644 --- a/trunk/arch/c6x/kernel/setup.c +++ b/trunk/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);