* Only attempt to load table if it is not 
* Only attempt to load table into namespace if it is not 
acpi_ns_load_table_by_type (	acpi_table_type                 table_type){	u32                             i;	acpi_status                     status;	struct acpi_table_desc          *table_desc;	ACPI_FUNCTION_TRACE ("ns_load_table_by_type");	status = acpi_ut_acquire_mutex (ACPI_MTX_TABLES);	if (ACPI_FAILURE (status)) {		return_ACPI_STATUS (status);	}	/*	 * Table types supported are:	 * DSDT (one), SSDT/PSDT (multiple)	 */	switch (table_type) {	case ACPI_TABLE_DSDT:		ACPI_DEBUG_PRINT ((ACPI_DB_INFO, "Loading DSDT\n"));		table_desc = acpi_gbl_table_lists[ACPI_TABLE_DSDT].next;		/* If table already loaded into namespace, just return */		if (table_desc->loaded_into_namespace) {			goto unlock_and_exit;		}		/* Now load the single DSDT */		status = acpi_ns_load_table (table_desc, acpi_gbl_root_node);		if (ACPI_SUCCESS (status)) {			table_desc->loaded_into_namespace = TRUE;		}		break;	case ACPI_TABLE_SSDT:		ACPI_DEBUG_PRINT ((ACPI_DB_INFO, "Loading %d SSDTs\n",			acpi_gbl_table_lists[ACPI_TABLE_SSDT].count));		/*		 * Traverse list of SSDT tables		 */		table_desc = acpi_gbl_table_lists[ACPI_TABLE_SSDT].next;		for (i = 0; i < acpi_gbl_table_lists[ACPI_TABLE_SSDT].count; i++) {			/*			 * Only attempt to load table if it is not			 * already loaded!			 */			if (!table_desc->loaded_into_namespace) {				status = acpi_ns_load_table (table_desc, acpi_gbl_root_node);				if (ACPI_FAILURE (status)) {					break;				}				table_desc->loaded_into_namespace = TRUE;			}			table_desc = table_desc->next;		}		break;	case ACPI_TABLE_PSDT:		ACPI_DEBUG_PRINT ((ACPI_DB_INFO, "Loading %d PSDTs\n",			acpi_gbl_table_lists[ACPI_TABLE_PSDT].count));		/*		 * Traverse list of PSDT tables		 */		table_desc = acpi_gbl_table_lists[ACPI_TABLE_PSDT].next;		for (i = 0; i < acpi_gbl_table_lists[ACPI_TABLE_PSDT].count; i++) {			/* Only attempt to load table if it is not already loaded! */			if (!table_desc->loaded_into_namespace) {				status = acpi_ns_load_table (table_desc, acpi_gbl_root_node);				if (ACPI_FAILURE (status)) {					break;				}				table_desc->loaded_into_namespace = TRUE;			}			table_desc = table_desc->next;		}		break;	default:		status = AE_SUPPORT;		break;	}unlock_and_exit:	(void) acpi_ut_release_mutex (ACPI_MTX_TABLES);	return_ACPI_STATUS (status);}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/0c9938cc75057c0fca1af55a55dcfc2842436695/nsload.c/clean/drivers/acpi/namespace/nsload.c