 /* use RTAS time-of-day routines if available */ if (rtas_token("get-time-of-day") != RTAS_UNKNOWN_SERVICE) { ppc_md.get_boot_time	= rtas_get_boot_time; ppc_md.get_rtc_time	= rtas_get_rtc_time; ppc_md.set_rtc_time	= rtas_set_rtc_time; } 
void __init chrp_setup_arch(void){	struct device_node *root = find_path_device ("/");	char *machine = NULL;	struct device_node *device;	unsigned int *p = NULL;	/* init to some ~sane value until calibrate_delay() runs */	loops_per_jiffy = 50000000/HZ;	if (root)		machine = get_property(root, "model", NULL);	if (machine && strncmp(machine, "Pegasos", 7) == 0) {		_chrp_type = _CHRP_Pegasos;	} else if (machine && strncmp(machine, "IBM", 3) == 0) {		_chrp_type = _CHRP_IBM;	} else if (machine && strncmp(machine, "MOT", 3) == 0) {		_chrp_type = _CHRP_Motorola;	} else {		/* Let's assume it is an IBM chrp if all else fails */		_chrp_type = _CHRP_IBM;	}	printk("chrp type = %x\n", _chrp_type);	rtas_initialize();	if (rtas_token("display-character") >= 0)		ppc_md.progress = rtas_progress;#ifdef CONFIG_BOOTX_TEXT	if (ppc_md.progress == NULL && boot_text_mapped)		ppc_md.progress = btext_progress;#endif#ifdef CONFIG_BLK_DEV_INITRD	/* this is fine for chrp */	initrd_below_start_ok = 1;	if (initrd_start)		ROOT_DEV = Root_RAM0;	else#endif		ROOT_DEV = Root_SDA2; /* sda2 (sda1 is for the kernel) */	/* On pegasos, enable the L2 cache if not already done by OF */	pegasos_set_l2cr();	/* Lookup PCI host bridges */	chrp_find_bridges();	/*	 *  Temporary fixes for PCI devices.	 *  -- Geert	 */	hydra_init();		/* Mac I/O */	/*	 *  Fix the Super I/O configuration	 */	sio_init();	/* Get the event scan rate for the rtas so we know how	 * often it expects a heartbeat. -- Cort	 */	device = find_devices("rtas");	if (device)		p = (unsigned int *) get_property			(device, "rtas-event-scan-rate", NULL);	if (p && *p) {		ppc_md.heartbeat = chrp_event_scan;		ppc_md.heartbeat_reset = HZ / (*p * 30) - 1;		ppc_md.heartbeat_count = 1;		printk("RTAS Event Scan Rate: %u (%lu jiffies)\n",		       *p, ppc_md.heartbeat_reset);	}	pci_create_OF_bus_map();	/*	 * Print the banner, then scroll down so boot progress	 * can be printed.  -- Cort	 */	if (ppc_md.progress) ppc_md.progress("Linux/PPC "UTS_RELEASE"\n", 0x0);}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/49e16b7becd6320bde51aa238c11815708f836d9/setup.c/buggy/arch/powerpc/platforms/chrp/setup.c