/* Parse the ACPI XSDT for later access by sfi_acpi_table_parse().  */
static int __init sfi_acpi_parse_xsdt(struct sfi_table_header *th)
/* Parse the ACPI XSDT for later access by sfi_acpi_table_parse().  */
static int __init sfi_acpi_parse_xsdt(struct sfi_table_header *th)
{
	struct sfi_table_key key = SFI_ANY_KEY;
	int tbl_cnt, i;
	void *ret;
	xsdt_va = (struct acpi_table_xsdt *)th;
	tbl_cnt = XSDT_GET_NUM_ENTRIES(xsdt_va, u64);
	for (i = 0; i < tbl_cnt; i++) {
		ret = sfi_check_table(xsdt_va->table_offset_entry[i], &key);
		if (IS_ERR(ret)) {
			disable_sfi();
			return -1;
		}
	}
	return 0;
}