Skip to content

Commit

Permalink
powerpc: Fix new-world powermac detection
Browse files Browse the repository at this point in the history
My G5 was being reported as an OldWorld in /proc/cpuinfo, which is
obviously not right... :)

Signed-off-by: Paul Mackerras <paulus@samba.org>
  • Loading branch information
Paul Mackerras committed Oct 27, 2005
1 parent 6316222 commit bfab101
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion arch/powerpc/platforms/powermac/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit bfab101

Please sign in to comment.