diff options
Diffstat (limited to 'arch/powerpc/kernel/setup-common.c')
-rw-r--r-- | arch/powerpc/kernel/setup-common.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/arch/powerpc/kernel/setup-common.c b/arch/powerpc/kernel/setup-common.c index 02fed27af7f6..4271f7a655a3 100644 --- a/arch/powerpc/kernel/setup-common.c +++ b/arch/powerpc/kernel/setup-common.c | |||
@@ -24,7 +24,6 @@ | |||
24 | #include <linux/seq_file.h> | 24 | #include <linux/seq_file.h> |
25 | #include <linux/ioport.h> | 25 | #include <linux/ioport.h> |
26 | #include <linux/console.h> | 26 | #include <linux/console.h> |
27 | #include <linux/utsname.h> | ||
28 | #include <linux/screen_info.h> | 27 | #include <linux/screen_info.h> |
29 | #include <linux/root_dev.h> | 28 | #include <linux/root_dev.h> |
30 | #include <linux/notifier.h> | 29 | #include <linux/notifier.h> |
@@ -328,7 +327,7 @@ static void c_stop(struct seq_file *m, void *v) | |||
328 | { | 327 | { |
329 | } | 328 | } |
330 | 329 | ||
331 | struct seq_operations cpuinfo_op = { | 330 | const struct seq_operations cpuinfo_op = { |
332 | .start =c_start, | 331 | .start =c_start, |
333 | .next = c_next, | 332 | .next = c_next, |
334 | .stop = c_stop, | 333 | .stop = c_stop, |
@@ -432,9 +431,9 @@ void __init smp_setup_cpu_maps(void) | |||
432 | for (j = 0; j < nthreads && cpu < NR_CPUS; j++) { | 431 | for (j = 0; j < nthreads && cpu < NR_CPUS; j++) { |
433 | DBG(" thread %d -> cpu %d (hard id %d)\n", | 432 | DBG(" thread %d -> cpu %d (hard id %d)\n", |
434 | j, cpu, intserv[j]); | 433 | j, cpu, intserv[j]); |
435 | cpu_set(cpu, cpu_present_map); | 434 | set_cpu_present(cpu, true); |
436 | set_hard_smp_processor_id(cpu, intserv[j]); | 435 | set_hard_smp_processor_id(cpu, intserv[j]); |
437 | cpu_set(cpu, cpu_possible_map); | 436 | set_cpu_possible(cpu, true); |
438 | cpu++; | 437 | cpu++; |
439 | } | 438 | } |
440 | } | 439 | } |
@@ -480,7 +479,7 @@ void __init smp_setup_cpu_maps(void) | |||
480 | maxcpus); | 479 | maxcpus); |
481 | 480 | ||
482 | for (cpu = 0; cpu < maxcpus; cpu++) | 481 | for (cpu = 0; cpu < maxcpus; cpu++) |
483 | cpu_set(cpu, cpu_possible_map); | 482 | set_cpu_possible(cpu, true); |
484 | out: | 483 | out: |
485 | of_node_put(dn); | 484 | of_node_put(dn); |
486 | } | 485 | } |