projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6316222
)
powerpc: Fix new-world powermac detection
author
Paul Mackerras
<paulus@samba.org>
Thu, 27 Oct 2005 12:45:33 +0000
(22:45 +1000)
committer
Paul Mackerras
<paulus@samba.org>
Thu, 27 Oct 2005 12:45:33 +0000
(22:45 +1000)
My G5 was being reported as an OldWorld in /proc/cpuinfo, which is
obviously not right... :)
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/powermac/setup.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/powerpc/platforms/powermac/setup.c
b/arch/powerpc/platforms/powermac/setup.c
index 72cd503d3d33b4decd98361b4b53c39ebd04d6dd..6f62af597291178b240d388fafb6f21d05632717 100644
(file)
--- a/
arch/powerpc/platforms/powermac/setup.c
+++ b/
arch/powerpc/platforms/powermac/setup.c
@@
-317,7
+317,9
@@
void __init pmac_setup_arch(void)
}
/* See if newworld or oldworld */
- ic = of_find_node_by_name(NULL, "interrupt-controller");
+ for (ic = NULL; (ic = of_find_all_nodes(ic)) != NULL; )
+ if (get_property(ic, "interrupt-controller", NULL))
+ break;
pmac_newworld = (ic != NULL);
if (ic)
of_node_put(ic);