patch-2.4.22 linux-2.4.22/arch/i386/kernel/acpitable.c
Next file: linux-2.4.22/arch/i386/kernel/acpitable.h
Previous file: linux-2.4.22/arch/i386/kernel/acpi_wakeup.S
Back to the patch index
Back to the overall index
- Lines: 75
- Date:
2003-08-25 04:44:39.000000000 -0700
- Orig file:
linux-2.4.21/arch/i386/kernel/acpitable.c
- Orig date:
2002-08-02 17:39:42.000000000 -0700
diff -urN linux-2.4.21/arch/i386/kernel/acpitable.c linux-2.4.22/arch/i386/kernel/acpitable.c
@@ -45,6 +45,7 @@
static acpi_table_handler acpi_boot_ops[ACPI_TABLE_COUNT];
+int acpi_lapic;
static unsigned char __init
acpi_checksum(void *buffer, int length)
@@ -94,7 +95,7 @@
static void *__init
acpi_tb_scan_memory_for_rsdp(void *address, int length)
{
- u32 offset;
+ int offset;
if (length <= 0)
return NULL;
@@ -117,7 +118,8 @@
}
/* Searched entire block, no RSDP was found */
- printk(KERN_INFO "ACPI: Searched entire block, no RSDP was found.\n");
+ dprintk(KERN_INFO "ACPI: Searched entire block 0x%x:0x%x, no RSDP was found.\n",
+ (int)address, (int)address + length);
return NULL;
}
@@ -330,7 +332,7 @@
printk(KERN_INFO "CPU %d (0x%02x00)", total_cpus, local_apic->id);
if (local_apic->flags.enabled) {
- printk(" enabled");
+ printk(" enabled\n");
ix = local_apic->id;
if (ix >= MAX_APICS) {
printk(KERN_WARNING
@@ -360,9 +362,8 @@
proc_entry.mpc_apicver = 0x10; /* integrated APIC */
MP_processor_info(&proc_entry);
} else {
- printk(" disabled");
+ printk(" disabled\n");
}
- printk("\n");
total_cpus++;
return;
@@ -530,14 +531,13 @@
return 0;
}
-extern int enable_acpi_smp_table;
/*
* Configure the processor info using MADT in the ACPI tables. If we fail to
* configure that, then we use the MPS tables.
*/
void __init
-config_acpi_tables(void)
+acpi_boot_init(void)
{
memset(&acpi_boot_ops, 0, sizeof(acpi_boot_ops));
@@ -547,8 +547,7 @@
* Only do this when requested, either because of CPU/Bios type or from the command line
*/
- if (enable_acpi_smp_table && !acpi_tables_init()) {
- have_acpi_tables = 1;
- printk("Enabling the CPU's according to the ACPI table\n");
- }
+ if (!acpi_tables_init())
+ acpi_lapic = 1;
}
+
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)