diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-17 13:49:06 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-17 13:49:06 -0500 |
commit | 8364919c5698d934860aabc607ffd32b13c8c37c (patch) | |
tree | 8d11db5c61d442f9bfc4499e56353ac120af6f8b /arch/microblaze | |
parent | d3569d163cba40f9c5682df083dbed3f049478a4 (diff) | |
parent | 7f788ec07d169123bb1bd14e6221a2b228079ce8 (diff) |
Merge branch 'next' of git://git.monstr.eu/linux-2.6-microblaze
* 'next' of git://git.monstr.eu/linux-2.6-microblaze:
USB: EHCI: Don't use NO_IRQ in xilinx ehci driver
microblaze: Add topology init
Diffstat (limited to 'arch/microblaze')
-rw-r--r-- | arch/microblaze/kernel/setup.c | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/arch/microblaze/kernel/setup.c b/arch/microblaze/kernel/setup.c index 604cd9dd1333..d4fc1a971779 100644 --- a/arch/microblaze/kernel/setup.c +++ b/arch/microblaze/kernel/setup.c | |||
@@ -26,6 +26,7 @@ | |||
26 | #include <linux/cache.h> | 26 | #include <linux/cache.h> |
27 | #include <linux/of_platform.h> | 27 | #include <linux/of_platform.h> |
28 | #include <linux/dma-mapping.h> | 28 | #include <linux/dma-mapping.h> |
29 | #include <linux/cpu.h> | ||
29 | #include <asm/cacheflush.h> | 30 | #include <asm/cacheflush.h> |
30 | #include <asm/entry.h> | 31 | #include <asm/entry.h> |
31 | #include <asm/cpuinfo.h> | 32 | #include <asm/cpuinfo.h> |
@@ -226,5 +227,23 @@ static int __init setup_bus_notifier(void) | |||
226 | 227 | ||
227 | return 0; | 228 | return 0; |
228 | } | 229 | } |
229 | |||
230 | arch_initcall(setup_bus_notifier); | 230 | arch_initcall(setup_bus_notifier); |
231 | |||
232 | static DEFINE_PER_CPU(struct cpu, cpu_devices); | ||
233 | |||
234 | static int __init topology_init(void) | ||
235 | { | ||
236 | int i, ret; | ||
237 | |||
238 | for_each_present_cpu(i) { | ||
239 | struct cpu *c = &per_cpu(cpu_devices, i); | ||
240 | |||
241 | ret = register_cpu(c, i); | ||
242 | if (ret) | ||
243 | printk(KERN_WARNING "topology_init: register_cpu %d " | ||
244 | "failed (%d)\n", i, ret); | ||
245 | } | ||
246 | |||
247 | return 0; | ||
248 | } | ||
249 | subsys_initcall(topology_init); | ||