Commit a3b4dc3c authored by Len Brown's avatar Len Brown

merge 2.6.3 into 2.6.4

parents 6b86d8e9 19b97868
...@@ -128,7 +128,9 @@ static int __init acpi_parse_mcfg(unsigned long phys_addr, unsigned long size) ...@@ -128,7 +128,9 @@ static int __init acpi_parse_mcfg(unsigned long phys_addr, unsigned long size)
return 0; return 0;
} }
#endif /* CONFIG_PCI_MMCONFIG */ #else
#define acpi_parse_mcfg NULL
#endif /* !CONFIG_PCI_MMCONFIG */
#ifdef CONFIG_X86_LOCAL_APIC #ifdef CONFIG_X86_LOCAL_APIC
static int __init static int __init
...@@ -424,6 +426,8 @@ static int __init acpi_parse_hpet(unsigned long phys, unsigned long size) ...@@ -424,6 +426,8 @@ static int __init acpi_parse_hpet(unsigned long phys, unsigned long size)
hpet_address); hpet_address);
return 0; return 0;
} }
#else
#define acpi_parse_hpet NULL
#endif #endif
/* detect the location of the ACPI PM Timer */ /* detect the location of the ACPI PM Timer */
...@@ -454,6 +458,8 @@ static int __init acpi_parse_fadt(unsigned long phys, unsigned long size) ...@@ -454,6 +458,8 @@ static int __init acpi_parse_fadt(unsigned long phys, unsigned long size)
printk(KERN_INFO PREFIX "PM-Timer IO Port: %#x\n", pmtmr_ioport); printk(KERN_INFO PREFIX "PM-Timer IO Port: %#x\n", pmtmr_ioport);
return 0; return 0;
} }
#else
#define acpi_parse_fadt NULL
#endif #endif
...@@ -666,7 +672,7 @@ acpi_boot_init (void) ...@@ -666,7 +672,7 @@ acpi_boot_init (void)
return error; return error;
} }
(void) acpi_table_parse(ACPI_BOOT, acpi_parse_sbf); acpi_table_parse(ACPI_BOOT, acpi_parse_sbf);
/* /*
* blacklist may disable ACPI entirely * blacklist may disable ACPI entirely
...@@ -683,19 +689,9 @@ acpi_boot_init (void) ...@@ -683,19 +689,9 @@ acpi_boot_init (void)
*/ */
acpi_process_madt(); acpi_process_madt();
#ifdef CONFIG_X86_PM_TIMER
acpi_table_parse(ACPI_FADT, acpi_parse_fadt); acpi_table_parse(ACPI_FADT, acpi_parse_fadt);
#endif acpi_table_parse(ACPI_HPET, acpi_parse_hpet);
acpi_table_parse(ACPI_MCFG, acpi_parse_mcfg);
#ifdef CONFIG_HPET_TIMER
(void) acpi_table_parse(ACPI_HPET, acpi_parse_hpet);
#endif
#ifdef CONFIG_PCI_MMCONFIG
error = acpi_table_parse(ACPI_MCFG, acpi_parse_mcfg);
if (error)
printk(KERN_ERR PREFIX "Error %d parsing MCFG\n", error);
#endif
return 0; return 0;
} }
......
...@@ -48,7 +48,7 @@ static void __init sbf_write(u8 v) ...@@ -48,7 +48,7 @@ static void __init sbf_write(u8 v)
if(!parity(v)) if(!parity(v))
v|=SBF_PARITY; v|=SBF_PARITY;
printk(KERN_INFO "Simple Boot Flag 0x%x\n", v); printk(KERN_INFO "Simple Boot Flag at 0x%x set to 0x%x\n", sbf_port, v);
spin_lock_irqsave(&rtc_lock, flags); spin_lock_irqsave(&rtc_lock, flags);
CMOS_WRITE(v, sbf_port); CMOS_WRITE(v, sbf_port);
......
...@@ -386,8 +386,13 @@ acpi_table_parse ( ...@@ -386,8 +386,13 @@ acpi_table_parse (
for (i = 0; i < sdt_count; i++) { for (i = 0; i < sdt_count; i++) {
if (sdt_entry[i].id != id) if (sdt_entry[i].id != id)
continue; continue;
handler(sdt_entry[i].pa, sdt_entry[i].size);
count++; count++;
if (count == 1)
handler(sdt_entry[i].pa, sdt_entry[i].size);
else
printk(KERN_WARNING PREFIX "%d duplicate %s table ignored.\n",
count, acpi_table_signatures[id]);
} }
return count; return count;
......
...@@ -28,6 +28,8 @@ ...@@ -28,6 +28,8 @@
#ifdef __KERNEL__ #ifdef __KERNEL__
#include <asm/system.h> /* defines cmpxchg */
#define COMPILER_DEPENDENT_INT64 long long #define COMPILER_DEPENDENT_INT64 long long
#define COMPILER_DEPENDENT_UINT64 unsigned long long #define COMPILER_DEPENDENT_UINT64 unsigned long long
......
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