diff options
Diffstat (limited to 'arch/sh/kernel/setup.c')
| -rw-r--r-- | arch/sh/kernel/setup.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/sh/kernel/setup.c b/arch/sh/kernel/setup.c index a067a34e0b64..c0e79843f580 100644 --- a/arch/sh/kernel/setup.c +++ b/arch/sh/kernel/setup.c | |||
| @@ -404,9 +404,8 @@ static int __init topology_init(void) | |||
| 404 | { | 404 | { |
| 405 | int cpu_id; | 405 | int cpu_id; |
| 406 | 406 | ||
| 407 | for (cpu_id = 0; cpu_id < NR_CPUS; cpu_id++) | 407 | for_each_cpu(cpu_id) |
| 408 | if (cpu_possible(cpu_id)) | 408 | register_cpu(&cpu[cpu_id], cpu_id, NULL); |
| 409 | register_cpu(&cpu[cpu_id], cpu_id, NULL); | ||
| 410 | 409 | ||
| 411 | return 0; | 410 | return 0; |
| 412 | } | 411 | } |
