projects
/
platform
/
adaptation
/
renesas_rcar
/
renesas_kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'merge' into next
[platform/adaptation/renesas_rcar/renesas_kernel.git]
/
arch
/
powerpc
/
kernel
/
smp.c
diff --git
a/arch/powerpc/kernel/smp.c
b/arch/powerpc/kernel/smp.c
index
19d654b
..
ac2621a
100644
(file)
--- 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)
int cpu_to_core_id(int cpu)
{
struct device_node *np;
- const
int
*reg;
+ const
__be32
*reg;
int id = -1;
np = of_get_cpu_node(cpu, NULL);
@@
-586,7
+586,7
@@
int cpu_to_core_id(int cpu)
if (!reg)
goto out;
- id =
*reg
;
+ id =
be32_to_cpup(reg)
;
out:
of_node_put(np);
return id;