2001-02-16 06:44:41

by Philipp Matthias Hahn

[permalink] [raw]
Subject: [PATCH] acpi/cpu.c on SMP

Hello!

acpi_idle is disabled on SMP systems with more then 1 cpu. The boot
message sais otherwise. This patch corrects the message.

--- linux-2.4.2/drivers/acpi/cpu.c.orig Sat Feb 10 12:01:52 2001
+++ linux-2.4.2/drivers/acpi/cpu.c Thu Feb 15 08:54:16 2001
@@ -335,13 +335,12 @@

acpi_pm_timer_init();

- if (acpi_use_idle) {
#ifdef CONFIG_SMP
- if (smp_num_cpus == 1)
- pm_idle = acpi_idle;
+ if (acpi_use_idle && (smp_num_cpus == 1)) {
#else
- pm_idle = acpi_idle;
+ if (acpi_use_idle) {
#endif
+ pm_idle = acpi_idle;
printk(KERN_INFO "ACPI: Using ACPI idle\n");
printk(KERN_INFO "ACPI: If experiencing system slowness, try adding \"acpi=no-idle\" to cmdline\n");
}

BYtE
Philipp
--
/ / (_)__ __ ____ __ Philipp Hahn
/ /__/ / _ \/ // /\ \/ /
/____/_/_//_/\_,_/ /_/\_\ [email protected]