diff options
Diffstat (limited to 'arch/powerpc/kernel/smp.c')
-rw-r--r-- | arch/powerpc/kernel/smp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/kernel/smp.c b/arch/powerpc/kernel/smp.c index 19d654b0150a..ac2621af3154 100644 --- a/arch/powerpc/kernel/smp.c +++ b/arch/powerpc/kernel/smp.c | |||
@@ -575,7 +575,7 @@ int __cpu_up(unsigned int cpu, struct task_struct *tidle) | |||
575 | int cpu_to_core_id(int cpu) | 575 | int cpu_to_core_id(int cpu) |
576 | { | 576 | { |
577 | struct device_node *np; | 577 | struct device_node *np; |
578 | const int *reg; | 578 | const __be32 *reg; |
579 | int id = -1; | 579 | int id = -1; |
580 | 580 | ||
581 | np = of_get_cpu_node(cpu, NULL); | 581 | np = of_get_cpu_node(cpu, NULL); |
@@ -586,7 +586,7 @@ int cpu_to_core_id(int cpu) | |||
586 | if (!reg) | 586 | if (!reg) |
587 | goto out; | 587 | goto out; |
588 | 588 | ||
589 | id = *reg; | 589 | id = be32_to_cpup(reg); |
590 | out: | 590 | out: |
591 | of_node_put(np); | 591 | of_node_put(np); |
592 | return id; | 592 | return id; |