I am writing this message from a kernel compiled with SMP
support that has APM turned on because the machine it is running
on happens to have only one CPU.
Thanks in advance for your help in testing this patch.
Adam J. Richter __ ______________ 4880 Stevens Creek Blvd, Suite 205
adam@yggdrasil.com \ / San Jose, California 95129-1034
+1 408 261-6630 | g g d r a s i l United States of America
fax +1 408 261-6631 "Free Software For The Rest Of Us."
-------------------------------Cut here--------------------------------
--- /tmp/linux-2.1.90/drivers/char/apm_bios.c Wed Mar 11 15:10:39 1998
+++ linux/drivers/char/apm_bios.c Wed Mar 18 12:51:15 1998
@@ -1159,8 +1159,10 @@
static struct proc_dir_entry *ent;
#ifdef __SMP__
- printk(KERN_NOTICE "APM disabled: APM is not SMP safe.\n");
- return;
+ if (smp_num_cpus > 1) {
+ printk(KERN_NOTICE "Advanced Power Managment disabled: APM is not multiprocessor safe.\n");
+ return;
+ }
#endif
if (apm_bios_info.version == 0) {
printk(KERN_INFO "APM BIOS not found.\n");
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu