diff options
Diffstat (limited to 'arch/m32r/kernel/setup.c')
| -rw-r--r-- | arch/m32r/kernel/setup.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/arch/m32r/kernel/setup.c b/arch/m32r/kernel/setup.c index 0d78942b4c76..3cd3c2988a48 100644 --- a/arch/m32r/kernel/setup.c +++ b/arch/m32r/kernel/setup.c | |||
| @@ -9,6 +9,7 @@ | |||
| 9 | 9 | ||
| 10 | #include <linux/config.h> | 10 | #include <linux/config.h> |
| 11 | #include <linux/init.h> | 11 | #include <linux/init.h> |
| 12 | #include <linux/kernel.h> | ||
| 12 | #include <linux/stddef.h> | 13 | #include <linux/stddef.h> |
| 13 | #include <linux/fs.h> | 14 | #include <linux/fs.h> |
| 14 | #include <linux/sched.h> | 15 | #include <linux/sched.h> |
| @@ -219,8 +220,6 @@ static unsigned long __init setup_memory(void) | |||
| 219 | extern unsigned long setup_memory(void); | 220 | extern unsigned long setup_memory(void); |
| 220 | #endif /* CONFIG_DISCONTIGMEM */ | 221 | #endif /* CONFIG_DISCONTIGMEM */ |
| 221 | 222 | ||
| 222 | #define M32R_PCC_PCATCR 0x00ef7014 /* will move to m32r.h */ | ||
| 223 | |||
| 224 | void __init setup_arch(char **cmdline_p) | 223 | void __init setup_arch(char **cmdline_p) |
| 225 | { | 224 | { |
| 226 | ROOT_DEV = old_decode_dev(ORIG_ROOT_DEV); | 225 | ROOT_DEV = old_decode_dev(ORIG_ROOT_DEV); |
| @@ -269,15 +268,14 @@ void __init setup_arch(char **cmdline_p) | |||
| 269 | paging_init(); | 268 | paging_init(); |
| 270 | } | 269 | } |
| 271 | 270 | ||
| 272 | static struct cpu cpu[NR_CPUS]; | 271 | static struct cpu cpu_devices[NR_CPUS]; |
| 273 | 272 | ||
| 274 | static int __init topology_init(void) | 273 | static int __init topology_init(void) |
| 275 | { | 274 | { |
| 276 | int cpu_id; | 275 | int i; |
| 277 | 276 | ||
| 278 | for (cpu_id = 0; cpu_id < NR_CPUS; cpu_id++) | 277 | for_each_present_cpu(i) |
| 279 | if (cpu_possible(cpu_id)) | 278 | register_cpu(&cpu_devices[i], i, NULL); |
| 280 | register_cpu(&cpu[cpu_id], cpu_id, NULL); | ||
| 281 | 279 | ||
| 282 | return 0; | 280 | return 0; |
| 283 | } | 281 | } |
