  return 0; 
pmac_show_cpuinfo(struct seq_file *m){	struct device_node *np;	char *pp;	int plen;	int mbmodel = pmac_call_feature(PMAC_FTR_GET_MB_INFO,		NULL, PMAC_MB_INFO_MODEL, 0);	unsigned int mbflags = (unsigned int)pmac_call_feature(PMAC_FTR_GET_MB_INFO,		NULL, PMAC_MB_INFO_FLAGS, 0);	char* mbname;	if (pmac_call_feature(PMAC_FTR_GET_MB_INFO, NULL, PMAC_MB_INFO_NAME, (int)&mbname) != 0)		mbname = "Unknown";	/* find motherboard type */	seq_printf(m, "machine\t\t: ");	np = find_devices("device-tree");	if (np != NULL) {		pp = (char *) get_property(np, "model", NULL);		if (pp != NULL)			seq_printf(m, "%s\n", pp);		else			seq_printf(m, "PowerMac\n");		pp = (char *) get_property(np, "compatible", &plen);		if (pp != NULL) {			seq_printf(m, "motherboard\t:");			while (plen > 0) {				int l = strlen(pp) + 1;				seq_printf(m, " %s", pp);				plen -= l;				pp += l;			}			seq_printf(m, "\n");		}	} else		seq_printf(m, "PowerMac\n");	/* print parsed model */	seq_printf(m, "detected as\t: %d (%s)\n", mbmodel, mbname);	seq_printf(m, "pmac flags\t: %08x\n", mbflags);	/* find l2 cache info */	np = find_devices("l2-cache");	if (np == 0)		np = find_type_devices("cache");	if (np != 0) {		unsigned int *ic = (unsigned int *)			get_property(np, "i-cache-size", NULL);		unsigned int *dc = (unsigned int *)			get_property(np, "d-cache-size", NULL);		seq_printf(m, "L2 cache\t:");		has_l2cache = 1;		if (get_property(np, "cache-unified", NULL) != 0 && dc) {			seq_printf(m, " %dK unified", *dc / 1024);		} else {			if (ic)				seq_printf(m, " %dK instruction", *ic / 1024);			if (dc)				seq_printf(m, "%s %dK data",					   (ic? " +": ""), *dc / 1024);		}		pp = get_property(np, "ram-type", NULL);		if (pp)			seq_printf(m, " %s", pp);		seq_printf(m, "\n");	}	/* find ram info */	np = find_devices("memory");	if (np != 0) {		int n;		struct reg_property *reg = (struct reg_property *)			get_property(np, "reg", &n);		if (reg != 0) {			unsigned long total = 0;			for (n /= sizeof(struct reg_property); n > 0; --n)				total += (reg++)->size;			seq_printf(m, "memory\t\t: %luMB\n", total >> 20);		}	}	/* Checks "l2cr-value" property in the registry */	np = find_devices("cpus");	if (np == 0)		np = find_type_devices("cpu");	if (np != 0) {		unsigned int *l2cr = (unsigned int *)			get_property(np, "l2cr-value", NULL);		if (l2cr != 0) {			seq_printf(m, "l2cr override\t: 0x%x\n", *l2cr);		}	}	/* Indicate newworld/oldworld */	seq_printf(m, "pmac-generation\t: %s\n",		   pmac_newworld ? "NewWorld" : "OldWorld");	return 0;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/0dd194d02d2584c34e06ddd26c7a7896a5fa1974/setup.c/buggy/arch/powerpc/platforms/powermac/setup.c