public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] apm_info.disabled
@ 2004-08-09 14:48 Paweł Sikora
  0 siblings, 0 replies; only message in thread
From: Paweł Sikora @ 2004-08-09 14:48 UTC (permalink / raw)
  To: linux-kernel, Andrew Morton

[-- Attachment #1: Type: text/plain, Size: 1 bytes --]



[-- Attachment #2: 2.6.x-apm-disabled.patch --]
[-- Type: text/x-diff, Size: 503 bytes --]

--- linux-2.6.8-rc3/arch/i386/kernel/apm.c.orig	2004-08-09 11:09:31.000000000 +0200
+++ linux-2.6.8-rc3/arch/i386/kernel/apm.c	2004-08-09 16:29:51.085575808 +0200
@@ -2271,10 +2271,12 @@
 	}
 	if ((num_online_cpus() > 1) && !power_off && !smp) {
 		printk(KERN_NOTICE "apm: disabled - APM is not SMP safe.\n");
+		apm_info.disabled = 1;
 		return -ENODEV;
 	}
 	if (PM_IS_ACTIVE()) {
 		printk(KERN_NOTICE "apm: overridden by ACPI.\n");
+		apm_info.disabled = 1;
 		return -ENODEV;
 	}
 	pm_active = 1;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-08-09 14:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-09 14:48 [PATCH] apm_info.disabled Paweł Sikora

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox