Merge branches 'acpica' and 'acpi-scan'
* acpica: ACPI / osl: Remove deprecated acpi_get_table_with_size()/early_acpi_os_unmap_memory() ACPI / osl: Remove acpi_get_table_with_size()/early_acpi_os_unmap_memory() users ACPICA: Tables: Allow FADT to be customized with virtual address ACPICA: Tables: Back port acpi_get_table_with_size() and early_acpi_os_unmap_memory() from Linux kernel * acpi-scan: ACPI: do not warn if _BQC does not exist
This commit is contained in:
@@ -76,6 +76,7 @@ static struct workqueue_struct *kacpi_notify_wq;
|
||||
static struct workqueue_struct *kacpi_hotplug_wq;
|
||||
static bool acpi_os_initialized;
|
||||
unsigned int acpi_sci_irq = INVALID_ACPI_IRQ;
|
||||
bool acpi_permanent_mmap = false;
|
||||
|
||||
/*
|
||||
* This list of permanent mappings is for memory that may be accessed from
|
||||
@@ -306,7 +307,7 @@ static void acpi_unmap(acpi_physical_address pg_off, void __iomem *vaddr)
|
||||
* virtual address). If not found, map it, add it to that list and return a
|
||||
* pointer to it.
|
||||
*
|
||||
* During early init (when acpi_gbl_permanent_mmap has not been set yet) this
|
||||
* During early init (when acpi_permanent_mmap has not been set yet) this
|
||||
* routine simply calls __acpi_map_table() to get the job done.
|
||||
*/
|
||||
void __iomem *__ref
|
||||
@@ -322,7 +323,7 @@ acpi_os_map_iomem(acpi_physical_address phys, acpi_size size)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (!acpi_gbl_permanent_mmap)
|
||||
if (!acpi_permanent_mmap)
|
||||
return __acpi_map_table((unsigned long)phys, size);
|
||||
|
||||
mutex_lock(&acpi_ioremap_lock);
|
||||
@@ -392,7 +393,7 @@ static void acpi_os_map_cleanup(struct acpi_ioremap *map)
|
||||
* mappings, drop a reference to it and unmap it if there are no more active
|
||||
* references to it.
|
||||
*
|
||||
* During early init (when acpi_gbl_permanent_mmap has not been set yet) this
|
||||
* During early init (when acpi_permanent_mmap has not been set yet) this
|
||||
* routine simply calls __acpi_unmap_table() to get the job done. Since
|
||||
* __acpi_unmap_table() is an __init function, the __ref annotation is needed
|
||||
* here.
|
||||
@@ -401,7 +402,7 @@ void __ref acpi_os_unmap_iomem(void __iomem *virt, acpi_size size)
|
||||
{
|
||||
struct acpi_ioremap *map;
|
||||
|
||||
if (!acpi_gbl_permanent_mmap) {
|
||||
if (!acpi_permanent_mmap) {
|
||||
__acpi_unmap_table(virt, size);
|
||||
return;
|
||||
}
|
||||
@@ -426,12 +427,6 @@ void __ref acpi_os_unmap_memory(void *virt, acpi_size size)
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(acpi_os_unmap_memory);
|
||||
|
||||
void __init early_acpi_os_unmap_memory(void __iomem *virt, acpi_size size)
|
||||
{
|
||||
if (!acpi_gbl_permanent_mmap)
|
||||
__acpi_unmap_table(virt, size);
|
||||
}
|
||||
|
||||
int acpi_os_map_generic_address(struct acpi_generic_address *gas)
|
||||
{
|
||||
u64 addr;
|
||||
|
Reference in New Issue
Block a user