patch-2.4.22 linux-2.4.22/arch/i386/kernel/apm.c

Next file: linux-2.4.22/arch/i386/kernel/dmi_scan.c
Previous file: linux-2.4.22/arch/i386/kernel/acpitable.h
Back to the patch index
Back to the overall index

diff -urN linux-2.4.21/arch/i386/kernel/apm.c linux-2.4.22/arch/i386/kernel/apm.c
@@ -868,6 +868,8 @@
 		idle_percentage *= 100;
 		idle_percentage /= jiffies_since_last_check;
 		use_apm_idle = (idle_percentage > idle_threshold);
+		if (apm_info.forbid_idle)
+			use_apm_idle = 0;
 		last_jiffies = jiffies;
 		last_stime = current->times.tms_stime;
 	}

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)