Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bfab1019 authored by Paul Mackerras's avatar Paul Mackerras
Browse files

powerpc: Fix new-world powermac detection



My G5 was being reported as an OldWorld in /proc/cpuinfo, which is
obviously not right... :)

Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent 6316222e
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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);