Commit 44e34ca6 authored by Andy Grover's avatar Andy Grover

ACPI: IA64 fixes (David Mosberger)

parent 0f5e01fa
......@@ -38,15 +38,10 @@
#include "acpi.h"
#ifdef CONFIG_ACPI_EFI
#include <asm/efi.h>
#include <linux/efi.h>
u64 efi_mem_attributes (u64 phys_addr);
#endif
#ifdef CONFIG_IA64
#include <asm/hw_irq.h>
#include <asm/delay.h>
#endif
#define _COMPONENT ACPI_OS_SERVICES
ACPI_MODULE_NAME ("osl")
......@@ -167,10 +162,10 @@ acpi_status
acpi_os_map_memory(ACPI_PHYSICAL_ADDRESS phys, ACPI_SIZE size, void **virt)
{
#ifdef CONFIG_ACPI_EFI
if (!(EFI_MEMORY_WB & efi_mem_attributes(phys))) {
*virt = ioremap(phys, size);
} else {
if (EFI_MEMORY_WB & efi_mem_attributes(phys)) {
*virt = phys_to_virt(phys);
} else {
*virt = ioremap(phys, size);
}
#else
if (phys > ULONG_MAX) {
......@@ -342,8 +337,7 @@ acpi_os_read_memory(
if (EFI_MEMORY_WB & efi_mem_attributes(phys_addr)) {
virt_addr = phys_to_virt(phys_addr);
}
else {
} else {
iomem = 1;
virt_addr = ioremap(phys_addr, width);
}
......@@ -388,8 +382,7 @@ acpi_os_write_memory(
if (EFI_MEMORY_WB & efi_mem_attributes(phys_addr)) {
virt_addr = phys_to_virt(phys_addr);
}
else {
} else {
iomem = 1;
virt_addr = ioremap(phys_addr, width);
}
......
......@@ -33,7 +33,9 @@
#include <linux/pm.h>
#include <linux/pci.h>
#include <linux/acpi.h>
#ifdef CONFIG_X86_IO_APIC
#include <asm/mpspec.h>
#endif
#include "acpi_bus.h"
#include "acpi_drivers.h"
......@@ -388,6 +390,10 @@ acpi_pci_irq_init (void)
if (acpi_irq_model == ACPI_IRQ_MODEL_IOAPIC)
mp_parse_prt();
#endif
#ifdef CONFIG_IOSAPIC
if (acpi_irq_model == ACPI_IRQ_MODEL_IOSAPIC)
iosapic_parse_prt();
#endif
pci_for_each_dev(dev)
acpi_pci_irq_enable(dev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment