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; 
void __init pmac_setup_arch(void){	struct device_node *cpu, *ic;	int *fp;	unsigned long pvr;	pvr = PVR_VER(mfspr(SPRN_PVR));	/* Set loops_per_jiffy to a half-way reasonable value,	   for use until calibrate_delay gets called. */	loops_per_jiffy = 50000000 / HZ;	cpu = of_find_node_by_type(NULL, "cpu");	if (cpu != NULL) {		fp = (int *) get_property(cpu, "clock-frequency", NULL);		if (fp != NULL) {			if (pvr >= 0x30 && pvr < 0x80)				/* PPC970 etc. */				loops_per_jiffy = *fp / (3 * HZ);			else if (pvr == 4 || pvr >= 8)				/* 604, G3, G4 etc. */				loops_per_jiffy = *fp / HZ;			else				/* 601, 603, etc. */				loops_per_jiffy = *fp / (2 * HZ);		}		of_node_put(cpu);	}	/* See if newworld or oldworld */	ic = of_find_node_by_name(NULL, "interrupt-controller");	pmac_newworld = (ic != NULL);	if (ic)		of_node_put(ic);	/* Lookup PCI hosts */	pmac_pci_init();#ifdef CONFIG_PPC32	ohare_init();	l2cr_init();#endif /* CONFIG_PPC32 */#ifdef CONFIG_PPC64	/* Probe motherboard chipset */	/* this is done earlier in setup_arch for 32-bit */	pmac_feature_init();	/* We can NAP */	powersave_nap = 1;	printk(KERN_INFO "Using native/NAP idle loop\n");#endif#ifdef CONFIG_KGDB	zs_kgdb_hook(0);#endif	find_via_cuda();	find_via_pmu();	smu_init();#ifdef CONFIG_NVRAM	pmac_nvram_init();#endif#ifdef CONFIG_PPC32#ifdef CONFIG_BLK_DEV_INITRD	if (initrd_start)		ROOT_DEV = Root_RAM0;	else#endif		ROOT_DEV = DEFAULT_ROOT_DEVICE;#endif#ifdef CONFIG_SMP	/* Check for Core99 */	if (find_devices("uni-n") || find_devices("u3"))		smp_ops = &core99_smp_ops;#ifdef CONFIG_PPC32	else		smp_ops = &psurge_smp_ops;#endif#endif /* CONFIG_SMP */}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/bfab1019b7e8b499dfc471a0dfc98b587420dda9/setup.c/buggy/arch/powerpc/platforms/powermac/setup.c