Re: SMP users: please test this patch

Kurt Garloff (garloff@kg1.ping.de)
Thu, 19 Mar 1998 00:20:20 +0100


> --- /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");

I'm using this for a long time now. (I posted a similar patch 2 months ago.)
Most of the time, I was using UP kernels, but sometimes I was testing SMP.
No problems with APM, so far.

-- 
Kurt Garloff, Dortmund 
<K.Garloff@ping.de>
PGP key on http://student.physik.uni-dortmund.de/homepages/garloff

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu