Commit 43f88120 authored by Alistair Popple's avatar Alistair Popple Committed by Benjamin Herrenschmidt

powerpc: More little endian fixes for setup-common.c

Signed-off-by: default avatarAlistair Popple <alistair@popple.id.au>
Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
parent ac13282d
...@@ -437,6 +437,7 @@ void __init smp_setup_cpu_maps(void) ...@@ -437,6 +437,7 @@ void __init smp_setup_cpu_maps(void)
while ((dn = of_find_node_by_type(dn, "cpu")) && cpu < nr_cpu_ids) { while ((dn = of_find_node_by_type(dn, "cpu")) && cpu < nr_cpu_ids) {
const __be32 *intserv; const __be32 *intserv;
__be32 cpu_be;
int j, len; int j, len;
DBG(" * %s...\n", dn->full_name); DBG(" * %s...\n", dn->full_name);
...@@ -450,8 +451,10 @@ void __init smp_setup_cpu_maps(void) ...@@ -450,8 +451,10 @@ void __init smp_setup_cpu_maps(void)
} else { } else {
DBG(" no ibm,ppc-interrupt-server#s -> 1 thread\n"); DBG(" no ibm,ppc-interrupt-server#s -> 1 thread\n");
intserv = of_get_property(dn, "reg", NULL); intserv = of_get_property(dn, "reg", NULL);
if (!intserv) if (!intserv) {
intserv = &cpu; /* assume logical == phys */ cpu_be = cpu_to_be32(cpu);
intserv = &cpu_be; /* assume logical == phys */
}
} }
for (j = 0; j < nthreads && cpu < nr_cpu_ids; j++) { for (j = 0; j < nthreads && cpu < nr_cpu_ids; j++) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment