/* Macros for consistency checks of the GICC subtable of MADT */
/* * MADT GICC minimum length refers to the MADT GICC structure table length as * defined in the earliest ACPI version supported on arm64, ie ACPI 5.1. * * The efficiency_class member was added to the * struct acpi_madt_generic_interrupt to represent the MADT GICC structure * "Processor Power Efficiency Class" field, added in ACPI 6.0 whose offset * is therefore used to delimit the MADT GICC structure minimum length * appropriately.
*/ #define ACPI_MADT_GICC_MIN_LENGTH offsetof( \ struct acpi_madt_generic_interrupt, efficiency_class)
/* * The ACPI processor driver for ACPI core code needs this macro * to find out this cpu was already mapped (mapping from CPU hardware * ID to CPU logical ID) or not.
*/ #define cpu_physical_id(cpu) cpu_logical_map(cpu)
/* * It's used from ACPI core in kdump to boot UP system with SMP kernel, * with this check the ACPI core will not override the CPU index * obtained from GICC with 0 and not print some error message as well. * Since MADT must provide at least one GICC structure for GIC * initialization, CPU will be always available in MADT on ARM64.
*/ staticinlinebool acpi_has_cpu_in_madt(void)
{ returntrue;
}
static __always_inline constchar *acpi_get_enable_method(int cpu)
{ if (acpi_psci_present()) return"psci";
if (acpi_parking_protocol_valid(cpu)) return"parking-protocol";
return NULL;
}
#ifdef CONFIG_ACPI_APEI /* * acpi_disable_cmcff is used in drivers/acpi/apei/hest.c for disabling * IA-32 Architecture Corrected Machine Check (CMC) Firmware-First mode * with a kernel command line parameter "acpi=nocmcoff". But we don't * have this IA-32 specific feature on ARM64, this definition is only * for compatibility.
*/ #define acpi_disable_cmcff 1 staticinline pgprot_t arch_apei_get_mem_attribute(phys_addr_t addr)
{ return __acpi_get_mem_attribute(addr);
} #endif/* CONFIG_ACPI_APEI */
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.