 spin_lock_init(&slot_errbuf_lock); 
void __init eeh_init(void){	struct device_node *phb, *np;	struct eeh_early_enable_info info;	np = of_find_node_by_path("/rtas");	if (np == NULL)		return;	ibm_set_eeh_option = rtas_token("ibm,set-eeh-option");	ibm_set_slot_reset = rtas_token("ibm,set-slot-reset");	ibm_read_slot_reset_state2 = rtas_token("ibm,read-slot-reset-state2");	ibm_read_slot_reset_state = rtas_token("ibm,read-slot-reset-state");	ibm_slot_error_detail = rtas_token("ibm,slot-error-detail");	if (ibm_set_eeh_option == RTAS_UNKNOWN_SERVICE)		return;	eeh_error_buf_size = rtas_token("rtas-error-log-max");	if (eeh_error_buf_size == RTAS_UNKNOWN_SERVICE) {		eeh_error_buf_size = 1024;	}	if (eeh_error_buf_size > RTAS_ERROR_LOG_MAX) {		printk(KERN_WARNING "EEH: rtas-error-log-max is bigger than allocated "		      "buffer ! (%d vs %d)", eeh_error_buf_size, RTAS_ERROR_LOG_MAX);		eeh_error_buf_size = RTAS_ERROR_LOG_MAX;	}	/* Enable EEH for all adapters.  Note that eeh requires buid's */	for (phb = of_find_node_by_name(NULL, "pci"); phb;	     phb = of_find_node_by_name(phb, "pci")) {		unsigned long buid;		buid = get_phb_buid(phb);		if (buid == 0 || PCI_DN(phb) == NULL)			continue;		info.buid_lo = BUID_LO(buid);		info.buid_hi = BUID_HI(buid);		traverse_pci_devices(phb, early_enable_eeh, &info);	}	if (eeh_subsystem_enabled)		printk(KERN_INFO "EEH: PCI Enhanced I/O Error Handling Enabled\n");	else		printk(KERN_WARNING "EEH: No capable adapters found\n");}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/df7242b1156966c3b1aa0fd2bc63e3736099b592/eeh.c/clean/arch/ppc64/kernel/eeh.c