HV: enable Kconfig of ACPI_PARSE_ENABLED

Previously we use Kconfig of DMAR_PARSE_ENABLED to choose pre-defined DMAR info
or parse it at runtime, at the same time we use MACRO of CONFIG_CONSTANT_ACPI
to decide whether parse PM related ACPI info at runtime. This looks redundant
so use a unified ACPI_PARSE_ENABLED Kconfig to replace them.

Tracked-On: #3107

Signed-off-by: Victor Sun <victor.sun@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
Victor Sun
2019-05-13 10:20:21 +08:00
committed by ACRN System Integration
parent 86fe2e033c
commit 8afbdb7505
12 changed files with 12 additions and 21 deletions

View File

@@ -131,7 +131,7 @@ static struct dmar_info plat_dmar_info = {
*/
struct dmar_info *get_dmar_info(void)
{
#ifdef CONFIG_DMAR_PARSE_ENABLED
#ifdef CONFIG_ACPI_PARSE_ENABLED
parse_dmar_table(&plat_dmar_info);
#endif
return &plat_dmar_info;

View File

@@ -66,7 +66,7 @@ void init_vboot_operations(void)
/* @pre: vboot_ops->init != NULL */
void init_vboot(void)
{
#ifndef CONFIG_CONSTANT_ACPI
#ifndef CONFIG_ACPI_PARSE_ENABLED
acpi_fixup();
#endif
vboot_ops->init();

View File

@@ -36,7 +36,7 @@ struct ioapic_info;
uint16_t parse_madt(uint32_t lapic_id_array[CONFIG_MAX_PCPU_NUM]);
uint16_t parse_madt_ioapic(struct ioapic_info *ioapic_id_array);
#ifndef CONFIG_CONSTANT_ACPI
#ifndef CONFIG_ACPI_PARSE_ENABLED
void acpi_fixup(void);
#endif