ACPICA: Remove extraneous parameter in table manager
Removed the Flags parameter from several internal functions since it was not being used. Signed-off-by: Bob Moore <robert.moore@intel.com> Signed-off-by: Lin Ming <ming.m.lin@intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
This commit is contained in:
parent
ac5f98db7b
commit
97cbb7d196
|
@ -49,7 +49,7 @@ acpi_status acpi_allocate_root_table(u32 initial_table_count);
|
||||||
/*
|
/*
|
||||||
* tbfadt - FADT parse/convert/validate
|
* tbfadt - FADT parse/convert/validate
|
||||||
*/
|
*/
|
||||||
void acpi_tb_parse_fadt(u32 table_index, u8 flags);
|
void acpi_tb_parse_fadt(u32 table_index);
|
||||||
|
|
||||||
void acpi_tb_create_local_fadt(struct acpi_table_header *table, u32 length);
|
void acpi_tb_create_local_fadt(struct acpi_table_header *table, u32 length);
|
||||||
|
|
||||||
|
@ -109,9 +109,8 @@ acpi_tb_verify_checksum(struct acpi_table_header *table, u32 length);
|
||||||
|
|
||||||
void
|
void
|
||||||
acpi_tb_install_table(acpi_physical_address address,
|
acpi_tb_install_table(acpi_physical_address address,
|
||||||
u8 flags, char *signature, u32 table_index);
|
char *signature, u32 table_index);
|
||||||
|
|
||||||
acpi_status
|
acpi_status acpi_tb_parse_root_table(acpi_physical_address rsdp_address);
|
||||||
acpi_tb_parse_root_table(acpi_physical_address rsdp_address, u8 flags);
|
|
||||||
|
|
||||||
#endif /* __ACTABLES_H__ */
|
#endif /* __ACTABLES_H__ */
|
||||||
|
|
|
@ -172,7 +172,6 @@ acpi_tb_init_generic_address(struct acpi_generic_address *generic_address,
|
||||||
* FUNCTION: acpi_tb_parse_fadt
|
* FUNCTION: acpi_tb_parse_fadt
|
||||||
*
|
*
|
||||||
* PARAMETERS: table_index - Index for the FADT
|
* PARAMETERS: table_index - Index for the FADT
|
||||||
* Flags - Flags
|
|
||||||
*
|
*
|
||||||
* RETURN: None
|
* RETURN: None
|
||||||
*
|
*
|
||||||
|
@ -181,7 +180,7 @@ acpi_tb_init_generic_address(struct acpi_generic_address *generic_address,
|
||||||
*
|
*
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
|
|
||||||
void acpi_tb_parse_fadt(u32 table_index, u8 flags)
|
void acpi_tb_parse_fadt(u32 table_index)
|
||||||
{
|
{
|
||||||
u32 length;
|
u32 length;
|
||||||
struct acpi_table_header *table;
|
struct acpi_table_header *table;
|
||||||
|
@ -219,10 +218,10 @@ void acpi_tb_parse_fadt(u32 table_index, u8 flags)
|
||||||
/* Obtain the DSDT and FACS tables via their addresses within the FADT */
|
/* Obtain the DSDT and FACS tables via their addresses within the FADT */
|
||||||
|
|
||||||
acpi_tb_install_table((acpi_physical_address) acpi_gbl_FADT.Xdsdt,
|
acpi_tb_install_table((acpi_physical_address) acpi_gbl_FADT.Xdsdt,
|
||||||
flags, ACPI_SIG_DSDT, ACPI_TABLE_INDEX_DSDT);
|
ACPI_SIG_DSDT, ACPI_TABLE_INDEX_DSDT);
|
||||||
|
|
||||||
acpi_tb_install_table((acpi_physical_address) acpi_gbl_FADT.Xfacs,
|
acpi_tb_install_table((acpi_physical_address) acpi_gbl_FADT.Xfacs,
|
||||||
flags, ACPI_SIG_FACS, ACPI_TABLE_INDEX_FACS);
|
ACPI_SIG_FACS, ACPI_TABLE_INDEX_FACS);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
|
|
|
@ -280,7 +280,6 @@ u8 acpi_tb_checksum(u8 *buffer, u32 length)
|
||||||
* FUNCTION: acpi_tb_install_table
|
* FUNCTION: acpi_tb_install_table
|
||||||
*
|
*
|
||||||
* PARAMETERS: Address - Physical address of DSDT or FACS
|
* PARAMETERS: Address - Physical address of DSDT or FACS
|
||||||
* Flags - Flags
|
|
||||||
* Signature - Table signature, NULL if no need to
|
* Signature - Table signature, NULL if no need to
|
||||||
* match
|
* match
|
||||||
* table_index - Index into root table array
|
* table_index - Index into root table array
|
||||||
|
@ -296,8 +295,9 @@ u8 acpi_tb_checksum(u8 *buffer, u32 length)
|
||||||
|
|
||||||
void
|
void
|
||||||
acpi_tb_install_table(acpi_physical_address address,
|
acpi_tb_install_table(acpi_physical_address address,
|
||||||
u8 flags, char *signature, u32 table_index)
|
char *signature, u32 table_index)
|
||||||
{
|
{
|
||||||
|
u8 flags;
|
||||||
acpi_status status;
|
acpi_status status;
|
||||||
struct acpi_table_header *table_to_install;
|
struct acpi_table_header *table_to_install;
|
||||||
struct acpi_table_header *mapped_table;
|
struct acpi_table_header *mapped_table;
|
||||||
|
@ -344,12 +344,13 @@ acpi_tb_install_table(acpi_physical_address address,
|
||||||
|
|
||||||
acpi_gbl_root_table_list.tables[table_index].pointer =
|
acpi_gbl_root_table_list.tables[table_index].pointer =
|
||||||
override_table;
|
override_table;
|
||||||
flags = ACPI_TABLE_ORIGIN_OVERRIDE;
|
|
||||||
address = ACPI_PTR_TO_PHYSADDR(override_table);
|
address = ACPI_PTR_TO_PHYSADDR(override_table);
|
||||||
|
|
||||||
table_to_install = override_table;
|
table_to_install = override_table;
|
||||||
|
flags = ACPI_TABLE_ORIGIN_OVERRIDE;
|
||||||
} else {
|
} else {
|
||||||
table_to_install = mapped_table;
|
table_to_install = mapped_table;
|
||||||
|
flags = ACPI_TABLE_ORIGIN_MAPPED;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Initialize the table entry */
|
/* Initialize the table entry */
|
||||||
|
@ -435,7 +436,6 @@ acpi_tb_get_root_table_entry(u8 *table_entry, u32 table_entry_size)
|
||||||
* FUNCTION: acpi_tb_parse_root_table
|
* FUNCTION: acpi_tb_parse_root_table
|
||||||
*
|
*
|
||||||
* PARAMETERS: Rsdp - Pointer to the RSDP
|
* PARAMETERS: Rsdp - Pointer to the RSDP
|
||||||
* Flags - Flags
|
|
||||||
*
|
*
|
||||||
* RETURN: Status
|
* RETURN: Status
|
||||||
*
|
*
|
||||||
|
@ -449,7 +449,7 @@ acpi_tb_get_root_table_entry(u8 *table_entry, u32 table_entry_size)
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
|
|
||||||
acpi_status __init
|
acpi_status __init
|
||||||
acpi_tb_parse_root_table(acpi_physical_address rsdp_address, u8 flags)
|
acpi_tb_parse_root_table(acpi_physical_address rsdp_address)
|
||||||
{
|
{
|
||||||
struct acpi_table_rsdp *rsdp;
|
struct acpi_table_rsdp *rsdp;
|
||||||
u32 table_entry_size;
|
u32 table_entry_size;
|
||||||
|
@ -600,14 +600,14 @@ acpi_tb_parse_root_table(acpi_physical_address rsdp_address, u8 flags)
|
||||||
*/
|
*/
|
||||||
for (i = 2; i < acpi_gbl_root_table_list.count; i++) {
|
for (i = 2; i < acpi_gbl_root_table_list.count; i++) {
|
||||||
acpi_tb_install_table(acpi_gbl_root_table_list.tables[i].
|
acpi_tb_install_table(acpi_gbl_root_table_list.tables[i].
|
||||||
address, flags, NULL, i);
|
address, NULL, i);
|
||||||
|
|
||||||
/* Special case for FADT - get the DSDT and FACS */
|
/* Special case for FADT - get the DSDT and FACS */
|
||||||
|
|
||||||
if (ACPI_COMPARE_NAME
|
if (ACPI_COMPARE_NAME
|
||||||
(&acpi_gbl_root_table_list.tables[i].signature,
|
(&acpi_gbl_root_table_list.tables[i].signature,
|
||||||
ACPI_SIG_FADT)) {
|
ACPI_SIG_FADT)) {
|
||||||
acpi_tb_parse_fadt(i, flags);
|
acpi_tb_parse_fadt(i);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -150,8 +150,7 @@ acpi_initialize_tables(struct acpi_table_desc * initial_table_array,
|
||||||
* Root Table Array. This array contains the information of the RSDT/XSDT
|
* Root Table Array. This array contains the information of the RSDT/XSDT
|
||||||
* in a common, more useable format.
|
* in a common, more useable format.
|
||||||
*/
|
*/
|
||||||
status =
|
status = acpi_tb_parse_root_table(rsdp_address);
|
||||||
acpi_tb_parse_root_table(rsdp_address, ACPI_TABLE_ORIGIN_MAPPED);
|
|
||||||
return_ACPI_STATUS(status);
|
return_ACPI_STATUS(status);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue